2013年5月24日

UVa11300 - Spreading the Wealth (分金币)

摘要: F. Spreading the WealthProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to coins of equal value, such that the total number of coins is divisible by the numbe 阅读全文

posted @ 2013-05-24 21:03 nigel_jw 阅读(145) 评论(0) 推荐(0) 编辑

UVa11729 Commando War(突击战)

摘要: GCommando WarInput:Standard InputOutput:Standard Output“Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was miles awayAh softly we moved through the shadows, slip away through the treesCrossing their lines in the mists in the fields on our ha 阅读全文

posted @ 2013-05-24 20:41 nigel_jw 阅读(246) 评论(0) 推荐(0) 编辑

UVa 11292 Dragon of Loowater

摘要: Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central Loowater had always been a prime breeding ground for geese. Due to the lack of predators, the geese population was out of control. The people of Loowater mostly kept clear 阅读全文

posted @ 2013-05-24 16:41 nigel_jw 阅读(136) 评论(0) 推荐(0) 编辑

导航