zhber
有好多做过的题没写下来,如果我还能记得就补吧
摘要: DescriptionThe farm has many hills upon which Farmer John would like to place guards to ensure the safety of his valuable milk-cows. He wonders how ma... 阅读全文
posted @ 2014-06-20 23:34 zhber 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Description去年偶们湖南遭受N年不遇到冰冻灾害,现在芙蓉哥哥则听说另一个骇人听闻的消息: 一场流星雨即将袭击整个霸中,由于流星体积过大,它们无法在撞击到地面前燃烧殆尽, 届时将会对它撞到的一切东西造成毁灭性的打击。很自然地,芙蓉哥哥开始担心自己的 安全问题。以霸中至In型男名誉起誓,他一定... 阅读全文
posted @ 2014-06-20 22:44 zhber 阅读(160) 评论(0) 推荐(0) 编辑
摘要: DescriptionFJ的N(1 inline int read(){ int x=0,f=1;char ch=getchar(); while(ch'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*1... 阅读全文
posted @ 2014-06-20 22:05 zhber 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Description给一个长度为n的序列a。1≤a[i]≤n。m组询问,每次询问一个区间[l,r],是否存在一个数在[l,r]中出现的次数大于(r-l+1)/2。如果存在,输出这个数,否则输出0。Input第一行两个数n,m。第二行n个数,a[i]。接下来m行,每行两个数l,r,表示询问[l,r]... 阅读全文
posted @ 2014-06-20 21:51 zhber 阅读(246) 评论(0) 推荐(0) 编辑
摘要: C. Artem and Arraytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputArtem has an array ofnpositive... 阅读全文
posted @ 2014-06-20 17:34 zhber 阅读(233) 评论(0) 推荐(0) 编辑
摘要: B. Kolya and Tandem Repeattime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya got stringsfor h... 阅读全文
posted @ 2014-06-20 17:07 zhber 阅读(327) 评论(0) 推荐(0) 编辑
摘要: A. Anton and Letterstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Anton has found a ... 阅读全文
posted @ 2014-06-20 16:30 zhber 阅读(226) 评论(0) 推荐(0) 编辑
摘要: B. Andrey and Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrey needs one more probl... 阅读全文
posted @ 2014-06-20 16:25 zhber 阅读(196) 评论(0) 推荐(0) 编辑