。。。

导航

2017年8月27日 #

【背包专题】H - 钱币兑换问题 hdu1284【完全背包】

摘要: 在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。 Input每行只有一个正整数N,N小于32768。Output对应每个输入,输出兑换方法数。Sample Input Sample Output 阅读全文

posted @ 2017-08-27 13:04 大学僧 阅读(128) 评论(0) 推荐(0) 编辑

【背包专题】C - The trouble of Xiaoqian hdu3591【混合背包:多重背包+完全背包】

摘要: In the country of ALPC , Xiaoqian is a very famous mathematician. She is immersed in calculate, and she want to use the minimum number of coins in eve 阅读全文

posted @ 2017-08-27 11:12 大学僧 阅读(112) 评论(0) 推荐(0) 编辑