摘要: Problem H{sum+=i++} to Reach NInput:standard inputOutput:standard outputMemory Limit:32 MBAll the positive numbers can be expressed as a sum of one, t... 阅读全文
posted @ 2014-07-31 20:00 炒饭君 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Problem ASummation of Four PrimesInput:standard inputOutput:standard outputTime Limit:4 secondsEuler proved in one of his classic theorems that prime ... 阅读全文
posted @ 2014-07-31 17:42 炒饭君 阅读(248) 评论(0) 推荐(0) 编辑
摘要: GCDProblem DescriptionGiven 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common d... 阅读全文
posted @ 2014-07-31 17:37 炒饭君 阅读(170) 评论(0) 推荐(0) 编辑
摘要: RewardProblem DescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. N... 阅读全文
posted @ 2014-07-31 14:51 炒饭君 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Harry Potter and the Hide StoryProblem DescriptioniSea is tired of writing the story of Harry Potter, so, lucky you, solving the following problem is ... 阅读全文
posted @ 2014-07-31 14:08 炒饭君 阅读(321) 评论(0) 推荐(0) 编辑