背包套用
是个努力精啊!
摸打滚爬的努力精本精!
展开
-
HDU2546饭卡——01背包问题模板套用
Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。 某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。 Input 多组数据。对...原创 2019-03-07 16:39:52 · 263 阅读 · 0 评论 -
HDU3466Proud Merchants——01背包问题模板套用
Problem Description Recently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, the people in this country are still very p...原创 2019-03-07 19:39:28 · 373 阅读 · 0 评论 -
HDU2602Bone Collector——01背包问题模板套用
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 , such as dog’s , cow’s , also he went to the grave …...原创 2019-03-07 19:56:42 · 247 阅读 · 0 评论