摘要: Description A string is said to be a palindrome if it remains same when read backwards. So, 'abba', 'madam' both are palindromes, but 'adam' is not. N 阅读全文
posted @ 2015-10-24 22:10 handsomecui 阅读(337) 评论(0) 推荐(0) 编辑
摘要: B - 楼下水题 Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 7CDescriptionA line on the plane is de... 阅读全文
posted @ 2015-10-24 22:00 handsomecui 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1005 - Rooks PDF (English) Statistics Forum Time Limit: 1 second(s)Memory Limit: 32 MBA rook is a piece used in the game of chess which is played on... 阅读全文
posted @ 2015-10-24 20:51 handsomecui 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 1148 - Mad Counting PDF (English) Statistics Forum Time Limit: 0.5 second(s)Memory Limit: 32 MBMob was hijacked by the mayor of the Town "TruthTown"... 阅读全文
posted @ 2015-10-24 20:45 handsomecui 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 连接:http://blog.csdn.net/zhjchengfeng5/article/details/7786595扩展欧几里德算法 谁是欧几里德?自己百度去 先介绍什么叫做欧几里德算法 有两个数 a b,现在,我们要求 a b 的最大公约数,怎么求?枚举他们的因子?不现实,当 a b ... 阅读全文
posted @ 2015-10-24 20:37 handsomecui 阅读(365) 评论(0) 推荐(0) 编辑
摘要: Roman RouletteTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 286Accepted Submission(s): 105Proble... 阅读全文
posted @ 2015-10-24 12:23 handsomecui 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 1的个数时间限制:1000ms | 内存限制:65535KB难度:3描述给你两个数a和b,你的任务是计算出1在a和b之间出现的次数,比如说,如果a=1024,b=1032,那么a和b之间的数就是:1024 1025 1026 1027 1028 1029 1030 1031 1032则有10个1出现... 阅读全文
posted @ 2015-10-24 10:24 handsomecui 阅读(448) 评论(0) 推荐(0) 编辑