不要过于沉溺过去,也不要过于畅想未来,把握现在!

摘要: 思路: 枚举Reduced ID NumbersTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8847 Accepted: 3552DescriptionT. Chur teaches various groups of stud... 阅读全文
posted @ 2014-08-21 14:44 coding_yuan 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1179 - Josephus ProblemPDF (English) Statistics ForumTime Limit: 2 second(s) Memory Limit: 32 MBThe historian Flavius Josephus relates how, in the Rom... 阅读全文
posted @ 2014-08-21 13:33 coding_yuan 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1148 - Mad CountingPDF (English) Statistics ForumTime Limit: 0.5 second(s) Memory Limit: 32 MBMob was hijacked by the mayor of the Town "TruthTown". M... 阅读全文
posted @ 2014-08-21 10:24 coding_yuan 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 思路: 设输入的两个数分别为n和a,每一次所得到的数为update: 开始update=a,依次update分别为update*10+a,这样数据会超出范围,则update每次为update=(update*10+a)%n即可, 如果update=0,跳出循环; 只需证明:(update*10+a)... 阅读全文
posted @ 2014-08-21 00:35 coding_yuan 阅读(226) 评论(0) 推荐(0) 编辑

不要过于沉溺过去,也不要过于畅想未来,把握现在!