Archive for 06月, 2010

17

Jun 23 2010 Published by yo2BcHo under ,生活

还是在不知不觉中迎来了自己的17岁.

升上高中的生活毕竟没有初中那么肆意了,高半夜凉初透考,大学,人生,爱情,父母之类的难题突然冒了出来.以前还可以说是等以后再说啦----但现在却好像是触手可及,未来不再像星空那样遥远,当然,也失去了童年中星空的璀璨光芒,换作现实的摧残.每天上学都要被老师重复着我们的"使命":高半夜凉初透考,高半夜凉初透考,高半夜凉初透考.

确实生活失去了许多本来应该有的乐趣,学习新的知识,保持对自然的好奇,把握身边的人,这些本来应该是很快乐的事情,却在时间缝中消散了.作业不换光阴,我想,还是把有限的光阴,放在无限的兴趣中好些.

很少会做出什么目标,因为我是那种执行力很差的人,更多的时候,能够做到坚定不移就很好了.但我也希望在今年里能够拿出些好的成绩,不要让妈失望.

课外书(别人都在埋头复习的时候,我总喜欢看课外书= =)里总说成功是怎样,成功就应该"大智若愚",成功就要经得起寂寞,成功就要...初看还是觉得挺像自己----但是这又有什么用呢?还是和许多教科书一样,硬生生地塞给学生"什么应该是是什么"或者"什么会怎样",却不能给予一点空余时间给我们,来真正践行一下人生,实践一下知识.怪得了谁呢?或许某天会有人硬生生地又塞给你:你成功了!仿佛就像一个扯线木偶,嘎吱嘎吱地在风中摇曳.

痛恨自己没有勇气大胆做一个背包客,像达摩流浪者那样向远方出发.但有时克制想想,家里还有两个老人等待我的,我又怎能抛下呢?既然还没有达到那个高度,还是先等等,继续努力吧.

我的生日愿望很简单,就是希望父母健健康康,快快乐乐.

夏天出生的人,大概都很喜欢逆光前行吧?

No responses yet

RCT2-活跃工厂

Jun 16 2010 Published by yo2BcHo under RCT2,生活

怎么chapter I里面的名字都那么可爱啊~

放假两天,倒是浪费了不少光阴~sigh

No responses yet

网页设计稿

Jun 15 2010 Published by yo2BcHo under design,学习,生活

其实都弄出来了,我现在才来重画初稿额……囧

如果能早点知道Balsamiq Mockups多好呢,当初就不用自己用记事本来写,再改,再写……

点击查看大图

2 responses so far

RCT2-疯狂城堡

Jun 15 2010 Published by yo2BcHo under RCT2,生活

话说很囧的一幅图,对于不会修建筑的我,是多么的囧啊

//还是用豆瓣做图床,在学校看不见,在这里倒能看见……

No responses yet

心心函数

Jun 14 2010 Published by yo2BcHo under mathematic,学习,生活

很久很久以前,在M大的博客里已经看到了一个很神奇的函数

不过一直用几何画板 or mathematica都画不出来(应该是隐函数的原因)

不过今天呢终于找到了画隐函数的方法啦~

上图!

以后再研究个加强版的送给MM。 XD

No responses yet

USACO-Calf Flac

Jun 13 2010 Published by yo2BcHo under 未分类

记录一个,这个现在还不会做~

http://218.4.165.132/oj/ShowProblem?problemid=u012

觉得应该有什么好一点的枚举办法吧,题目太烦了太囧了= =

No responses yet

USACO-Barn Repair

Jun 13 2010 Published by yo2BcHo under OI,USACO

题目描述
一道不错的贪心题,交了三次才ac.第一次:忘记除掉assign;第二次:没有注意处理提供板数目小于牛数目的问题;第三次:ac! :D

贪心策略:将相邻的间距最大的前m-1个去掉就可以保证到总体最短了
要注意的就是:1.数据没有排序 2.可能没牛在(我自己加的,貌似没这个测试数据) 3.要考虑板多于牛的情况

[cc lang="Pascal"](**********************************************************************************)
(* Problem: u011 "1.3.2 Barn Repair" from USACO 翻译 *)
(* Language: PASCAL *)
(* Result: AC (1ms, 674KB) on SzNOI.cn *)
(* Author: bcxx at 2010-06-13 13:45:28 *)
(**********************************************************************************)

{
ID:bcxx
LANG :P ASCAL
PROG:barn1
}
const maxn=300;
type
arr=array[0..maxn] of integer;
var
barn,width:arr;
i,c,m,s,len,kill:integer;
procedure qsort(l,r:integer;var t:arr);
var
i,j,k,temp:integer;
begin
i:=l;j:=r;
k:=t[(i+j)div 2];
repeat
while t[i]k do dec(j);
if ij;
if il then qsort(l,j,t);
end;
function whoMax(a,b:integer):integer;
begin
if a>b then exit(a) else exit(b);
end;
function whoMin(a,b:integer):integer;
begin
if a>b then exit(b) else exit(a);
end;
begin
readln(m,s,c);
if c=0 then begin writeln(0);halt;end;
barn[0]:=0;
for i:=1 to c do
readln(barn[i]);
qsort(1,c,barn);
for i:=2 to c do
width[i]:=barn[i]-barn[i-1];
qsort(2,c,width);
len:=barn[c]-barn[1];
kill:=0;
for i:=c downto c-m+2 do
inc(kill,width[i]);
writeln(len-kill+whoMin(m,c));
end.

[/cc]

No responses yet

USACO-Broken Necklace

Jun 12 2010 Published by yo2BcHo under OI,USACO,学习

题目描述

囧一个,我倒是觉得这到题目比较难啊,毕竟我不会用搜索,结果要用自己更不会的DP(其实就是一个伪DP啦 :D )
首先将珠子copy一遍,就可以做到环状遍历了.因为题目是上到350的,如果用string就杯具了,最好还是用ansistring,或者用数组(不过在copy的时候还是要麻烦点啦).
然后从左往右数:
[cc lang="Pascal"]for i:=1 to 2*n do
begin
if beads[i-1]='r' then
begin
left[i,0]:=left[i-1,0]+1;
left[i,1]:=0;
end;
if beads[i-1]='b' then
begin
left[i,0]:=0;
left[i,1]:=left[i-1,1]+1;
end;
if beads[i-1]='w' then
begin
left[i,0]:=left[i-1,0]+1;
left[i,1]:=left[i-1,1]+1;
end;
end;[/cc]
然后再在最后处理下最大值就好了
ans=min(n,max(max(left[i,0],left[i,1])+max(right[i,0]+right[i,1])))
[cc lang="Pascal"]const
maxn=360;
var
left,right:array[0..maxn,0..1] of integer;{0:r,1:b}
beads:ansistring;
i,n,ans:integer;
procedure Init;
begin
fillchar(left,sizeof(left),0);
fillchar(right,sizeof(right),0);
end;
function whoMax(a,b:integer):integer;
begin
if a>b then exit(a) else exit(b);
end;
function whoMin(a,b:integer):integer;
begin
if a>b then exit(b) else exit(a);
end;
begin
Init;
readln(n);readln(beads);
beads:=beads+beads;
left[0,0]:=0;left[0,1]:=0;
for i:=1 to 2*n do
begin
if beads[i-1]='r' then
begin
left[i,0]:=left[i-1,0]+1;
left[i,1]:=0;
end;
if beads[i-1]='b' then
begin
left[i,0]:=0;
left[i,1]:=left[i-1,1]+1;
end;
if beads[i-1]='w' then
begin
left[i,0]:=left[i-1,0]+1;
left[i,1]:=left[i-1,1]+1;
end;
end;
right[2*n,0]:=0;right[2*n,1]:=1;
for i:=2*n downto 1 do
begin
if beads[i+1]='r' then
begin
right[i,0]:=right[i+1,0]+1;
right[i,1]:=0;
end;
if beads[i+1]='b' then
begin
right[i,0]:=0;
right[i,1]:=right[i+1,1]+1;
end;
if beads[i+1]='w' then
begin
right[i,0]:=right[i+1,0]+1;
right[i,1]:=right[i+1,1]+1;
end;
end;
ans:=-maxint;
for i:=1 to 2*n do
ans:=whoMax(ans,whoMax(left[i,0],left[i,1])+whoMax(right[i,0],right[i,1]));
ans:=whoMin(ans,n);
writeln(ans);
end.[/cc]

迟点真得恶补一下搜索+动规,囧

No responses yet

RCT2-发电牧场

Jun 09 2010 Published by yo2BcHo under RCT2,,生活

一直觉得像rct这样的经营类游戏是最好玩的~!创造自己喜欢的东西,感觉真好~

少说废话,上图

虽然rct2方块的样子可能给很多人抗拒的感觉,但我还是喜欢玩这种经营类的游戏,王道!

//不知道链豆瓣相册会不会被ban呢?

No responses yet

Weekly-10/06/08

Jun 08 2010 Published by yo2BcHo under 学习,生活

The Analysis of Our Work

This week we sent and received the first kind questionnaire of our research.(Which called The Research of Tutor Learning.)

As our expectation, most of the students are interesting with this new way of learning. In the writing part, we just set a question about the views. But most of them not only write down what they felt with this project, but also what their views about the education system in China now.

As far as you can imagine., most of this comment are said like that:

"If we cannot change the system now, no matter we do, we still cannot reach the real benefit." or "This project is just a skin with the old way!" or "Quality education equals quantity education, facing the exam, students are not able to have enough time to deal with it."

I think this is a amusing result. We study for long time and should have a full view with our study life. Why we almost feel the system does not fit to us? Does students have not get a objective eyes?(是学生不能客观看待事实吗?) As for me, I can't agree this explanation. We had god touch with  the real society so much that we can have our opinions, and the most important thing is not just one or two students did but a large number did.

It isn't good to discussion the system, but I think we should pay more attention to the education. Maybe if we stand as the person in charge, we will find more difficulties than we can imagine. But I think no matter we're students, teachers of the person in charge(有关部门 :D ), we should pay more patience of communication among all the part. Of course, I hope we can have a better environment in the future!

No responses yet

Next »