摘要: S-NimTime Limit : 5000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 2Accepted Submission(s) : 1Problem DescriptionArthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows:The starting position has a number of hea 阅读全文
posted @ 2013-08-09 17:41 芷水 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Georgia and BobTime Limit:1000MSMemory Limit:10000KTotal Submissions:6622Accepted:1932DescriptionGeorgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, ..., and place N chessmen on different grids, as shown in the follo 阅读全文
posted @ 2013-08-09 16:30 芷水 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Happy 2006Time Limit:3000MSMemory Limit:65536KTotal Submissions:8359Accepted:2737DescriptionTwo positive integers are said to be relatively prime to each other if the Great Common Divisor (GCD) is 1. For instance, 1, 3, 5, 7, 9...are all relatively prime to 2006.Now your job is easy: for the given i 阅读全文
posted @ 2013-08-09 11:33 芷水 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Longge's problemTime Limit:1000MSMemory Limit:65536KTotal Submissions:6383Accepted:2043DescriptionLongge is good at mathematics and he likes to think about hard mathematical problems which will be solved by some graceful algorithms. Now a problem comes: Given an integer N(1 20 #include21 #includ 阅读全文
posted @ 2013-08-09 09:51 芷水 阅读(1420) 评论(0) 推荐(1) 编辑