
ACM/背包问题/完全背包
文章平均质量分 60
Magic_____
当神已无能为力便由魔来普度众生
展开
-
Poj 3181 Dollar Dayz
DescriptionFarmer John goes to Dollar Days at The Cow Store and discovers an unlimited number of tools on sale. During his first visit, the tools are selling variously for $1, $2, and $3. Farmer Joh原创 2012-10-08 08:57:19 · 627 阅读 · 0 评论 -
Uva 674 Coin Change
Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.For example, if we have 11 cents, then we ca原创 2012-10-08 09:04:26 · 707 阅读 · 0 评论 -
Uva 147 Dollars
New Zealand currency consists of $100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program that will determine, for any given amount, in how many ways that amount may b原创 2012-10-08 09:00:36 · 664 阅读 · 0 评论