摘要: Who Gets the Most Candies?Time Limit : 10000/5000ms (Java/Other) Memory Limit : 262144/131072K (Java/Other)Total Submission(s) : 15 Accepted Submission(s) : 7Problem DescriptionN children are sitting in a circle to play a game.The children are numbered from 1 to N in clockwise order. Each of them h. 阅读全文
posted @ 2013-11-14 19:55 疯狂的癫子 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 反素数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3548 Accepted Submission(s): 2039 Problem Description反素数就是满足对于任意i(0 2 #include 3 int cmp(int x) 4 { 5 int i,k=0; 6 for(i=1;imax)22 { 23 max=cmp(i);24 ... 阅读全文
posted @ 2013-11-14 19:29 疯狂的癫子 阅读(267) 评论(0) 推荐(0) 编辑