随笔分类 -  acm训练

上一页 1 ··· 4 5 6 7 8
摘要:这是我原来51cto上博客移植过来的。凑合看吧。不过真的忘了。View Code #include <stdio.h> #include<string.h> int main() { int i,k,l1,l2,ii,j,leap; char s1[1001],s2[1001]; while(gets(s1)!=NULL) { gets(s2); l1=strlen(s1); l2 = strlen(s2);... 阅读全文
posted @ 2012-05-22 19:32 某某。 阅读(230) 评论(0) 推荐(0)
摘要:Destroy the Well of LifeTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 556Accepted Submission(s): 197Problem DescriptionIn the game of DotA (Defense of the Ancient), there are two opposite legions called The Sentinel and The Scourage.Now The Scour 阅读全文
posted @ 2012-04-22 11:10 某某。 阅读(192) 评论(0) 推荐(0)
摘要:Black and white paintingTime Limit: 1000MS Memory limit: 65536K题目描述You are visiting the Centre Pompidou which contains a lot of modern paintings. In particular you notice one painting which consists solely of black and white squares, arranged in rows and columns like in a chess board (no two adjacen 阅读全文
posted @ 2012-03-10 16:23 某某。 阅读(387) 评论(0) 推荐(0)
摘要:很郁闷。。。一直以为是精度问题。。。其实还就是精度问题==。。。另外还有一个问题就是看错题了,最后的那个数字我写成了double 型。后来改正后就AC了= =。。。刘老师不在的话,我想说一句“我怀念我的103小马甲= =”Ballot evaluationTime Limit: 1000MS Memory limit: 65536K题目描述Before the 2009 elections at the European Parliament, Bill and Ted have asked their friends to make guesses about the outcome of 阅读全文
posted @ 2012-02-26 23:09 某某。 阅读(388) 评论(2) 推荐(0)

上一页 1 ··· 4 5 6 7 8