2012年10月24日

Uva 11300 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 @ 2012-10-24 10:53 kuangbin 阅读(1472) 评论(0) 推荐(0) 编辑

Uva 11729 Commando War (贪心,排序)

摘要: There is a war and it doesn't look very promising for your country. Now it's time to act. You have a commando squad at your disposal and planning an ambush on an important enemy camp located nearby. You have N soldiers in your squad. In your master-plan, every single soldier has a unique res 阅读全文

posted @ 2012-10-24 00:30 kuangbin 阅读(1345) 评论(0) 推荐(0) 编辑

Uva 11292 The Dragon of Loowater(排序后贪心)

摘要: Problem C: The Dragon of LoowaterOnce 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 peo 阅读全文

posted @ 2012-10-24 00:09 kuangbin 阅读(2077) 评论(0) 推荐(3) 编辑

导航

JAVASCRIPT: