
背包
_bread
我很菜的
展开
-
HDU 2546 饭卡(01背包)
Problem Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。Input原创 2017-07-20 17:49:47 · 217 阅读 · 0 评论 -
HDU 2955 Robberies(01背包)
Robberies Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 68 Accepted Submission(s) : 36Font: Times New Roman | Verdana | Georgia Font S原创 2017-07-20 18:26:01 · 197 阅读 · 0 评论 -
HDU 2602 Bone Collector(01背包)
Bone Collector Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 58 Accepted Submission(s) : 37Font: Times New Roman | Verdana | Georgia F原创 2017-07-20 18:41:14 · 217 阅读 · 0 评论 -
HDU 1114 Piggy-Bank (完全背包)
Piggy-Bank Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial su原创 2017-07-20 21:43:29 · 260 阅读 · 0 评论 -
HDU 1028 Ignatius and the Princess III
Ignatius and the Princess III Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Problem Description"Well, it seems the first problem is too easy. I will let you kno原创 2017-07-20 22:05:36 · 237 阅读 · 0 评论 -
HDU 2159 FATE(二维完全背包)
FATE Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Problem Description最近xhd正在玩一款叫做FATE的游戏,为了得到极品装备,xhd在不停的杀怪做任务。久而久之xhd开始对杀怪产生的厌恶感,但又不得不通过杀怪来升完这最后一级。现在的问题是,xhd升原创 2017-07-20 22:52:26 · 224 阅读 · 0 评论