摘要: The 3n + 1 problemTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 51221Accepted: 16262DescriptionProblems in Computer Science are often class... 阅读全文
posted @ 2014-07-30 10:18 qscqesze 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 取石子游戏Description有 两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆 中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好... 阅读全文
posted @ 2014-07-30 10:08 qscqesze 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #inclu... 阅读全文
posted @ 2014-07-30 09:38 qscqesze 阅读(339) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider a game in which darts are thrown at a board. The board is formed by 10 circles with radii 20, 40, 60, 80, 100, 120, 140, 160, 180,... 阅读全文
posted @ 2014-07-30 09:37 qscqesze 阅读(378) 评论(0) 推荐(0) 编辑