HDU 6092 17多校5 Rikka with Subset(dp+思维)
摘要:Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is
阅读全文
【多重背包】HDU 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
摘要:Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description 急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米
阅读全文
【完全背包】HDU 1284 钱币兑换问题
摘要:Problem Description 在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。 Input 每行只有一个正整数N,N小于32768。 Output 对应每个输入,输出兑换方法数。 Sample Input 2934 12553 Sample
阅读全文
【完全背包】HDU 4508 湫湫系列故事——减肥记I
摘要:Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description 对于吃货来说,过年最幸福的事就是吃了,没有之一! 但是对于女生来说,卡路里(热量)是天敌啊! 资深美女湫湫深谙“胖来如山倒,胖去如抽丝”的道理,所
阅读全文
【01背包】HDU 2602 Bone Collector (模板题)
摘要:Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , s
阅读全文
【01背包】HDU 1171 Big Event in HDU
摘要:Problem Description Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had
阅读全文
【01背包】HDU 2546 饭卡
摘要:Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后
阅读全文