soj 2749 The Fewest Coins
摘要:
DescriptionFarmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a way that the smallest number of coins changes hands, i.e., the number of coins he uses to pay plus the number of coins he receives in change is minimized. Help him to 阅读全文
posted @ 2011-07-21 12:09 sleeper_qp 阅读(435) 评论(0) 推荐(1) 编辑