
Codeforces
文章平均质量分 78
noname40
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #124 (Div. 2)
A. Plate Game题意:给出桌子大小,和圆盘的半径,两个人轮流放盘子,盘子不可以重叠,谁先没有地方放盘子,那么这个人就输了。这题尼玛坑爹啊。。。神题+群里大牛神解。。跪了。只要第一个人可以放下盘子,那么他肯定是能赢的,First能放的话就放中间,随便第二个人怎么下,以中心为对称点模仿他就行了。#include#includeusing namespace std;原创 2012-06-13 00:02:09 · 3188 阅读 · 2 评论 -
Codeforces Round #135 (Div. 2)
哎、、、我太水了。。。参考各种神代码 @dut200901102 @hanfei @cxloveA. k-String统计字母出现次数 YY即可。。。#include#include#includeusing namespace std;int main() { int cnt[30] , k , i , len , j; char s[1010] , an原创 2012-08-30 19:48:50 · 587 阅读 · 0 评论 -
Codeforces Round #137 (Div. 2)
哎、、 好水啊 准备敲之前一定要想好思路、、、到快结束的时候思路才对、、而且有个JR还总cha我、、最后依然一题悲剧、、A. Shooshuns and Sequence题意:大水、就是把当前kth位置的数字复制到最后,然后删除第一个数字,求最小操作数能把序列变为所有位置的数字都相同。思路:开始脑子进水,写模拟。。。然后变换一次check一次、、果断悲剧好久,后来看看发现点端倪,初原创 2012-09-11 09:01:26 · 732 阅读 · 0 评论 -
Codeforces Round #147 (Div. 2)
A 拨开题意就是求,最多重复的时间,然后记录下个数就行、#include#include#include#includeusing namespace std;int main() { int n; set myset; set::iterator it; string str; while(~scanf("%d",&n)) {原创 2012-10-26 08:44:45 · 472 阅读 · 0 评论