背包
life4711
这个作者很懒,什么都没留下…
展开
-
hdu1712 分组背包问题
问题有N件物品和一个容量为V的背包。第i件物品的费用是c[i],价值是w[i]。这些物品被划分为若干组,每组中的物品互相冲突,最多选一件。求解将哪些物品装入背包可使这些物品的费用总和不超过背包容量,且价值总和最大。算法这个问题变成了每组物品有若干种策略:是选择本组的某一件,还是一件都不选。也就是说设f[k][v]表示前k组物品花费费用v能取得的最大权值,则有:f[k][v]=max原创 2014-12-20 15:25:29 · 2204 阅读 · 0 评论 -
hdu 2639 01背包第k优解
http://acm.hdu.edu.cn/showproblem.php?pid=2639Problem DescriptionThe title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem t原创 2014-11-08 20:39:24 · 856 阅读 · 0 评论 -
hdu 4341 分组背包
http://acm.hdu.edu.cn/showproblem.php?pid=4341Problem DescriptionHomelesser likes playing Gold miners in class. He has to pay much attention to the teacher to avoid being noticed. So he原创 2015-02-05 10:15:32 · 936 阅读 · 0 评论 -
poj 1014 多重背包问题
http://poj.org/problem?id=1014DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. Thi原创 2014-10-26 19:20:58 · 773 阅读 · 0 评论 -
hdu5188 加限制的01背包问题
http://acm.hdu.edu.cn/showproblem.php?pid=5188Problem DescriptionAs one of the most powerful brushes in the world, zhx usually takes part in all kinds of contests.One day, zhx takes pa原创 2015-03-16 20:39:14 · 2261 阅读 · 0 评论 -
poj1742 多重背包的可行性问题
http://poj.org/problem?id=1742DescriptionPeople in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coi原创 2015-03-18 21:17:39 · 3548 阅读 · 1 评论 -
hdu4751 最短路+背包dp
http://acm.hdu.edu.cn/showproblem.php?pid=4571Problem Description Bob gets tired of playing games, leaves Alice, and travels to Changsha alone. Yuelu Mountain, Orange Island, Window of原创 2015-05-21 19:26:53 · 839 阅读 · 0 评论 -
hdu 5389 dp类似背包
http://acm.hdu.edu.cn/showproblem.php?pid=5384Problem DescriptionDanganronpa is a video game franchise created and developed by Spike Chunsoft, the series' name is compounded from the Japane原创 2015-08-14 17:15:27 · 735 阅读 · 0 评论 -
hdu5445 || 2015长春网络赛1009题 多重背包问题
http://acm.hdu.edu.cn/showproblem.php?pid=5445Problem DescriptionFew days before a game of orienteering, Bell came to a mathematician to solve a big problem. Bell is preparing the dessert fo原创 2015-09-25 11:08:37 · 979 阅读 · 0 评论 -
poj2392 多重背包问题
http://poj.org/problem?id=2392DescriptionThe cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 <= K <= 400) diff原创 2014-11-16 20:19:33 · 1742 阅读 · 0 评论 -
poj2063 完全背包问题
http://poj.org/problem?id=2063DescriptionJohn never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewher原创 2014-11-17 17:26:27 · 633 阅读 · 0 评论 -
poj1948 二维01背包
http://poj.org/problem?id=1948DescriptionLike everyone, cows enjoy variety. Their current fancy is new shapes for pastures. The old rectangular shapes are out of favor; new geometries are the fa原创 2014-11-30 17:19:54 · 1510 阅读 · 0 评论 -
poj 1837 dp有点类似背包
http://poj.org/problem?id=1837原创 2014-10-23 08:53:53 · 632 阅读 · 0 评论 -
hdu 1171 背包
http://acm.hdu.edu.cn/showproblem.php?pid=1171Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College原创 2014-05-15 21:22:10 · 762 阅读 · 0 评论 -
2013年长春站C题 背包+概率
http://acm.hdu.edu.cn/showproblem.php?pid=4815原创 2014-08-25 18:08:34 · 808 阅读 · 0 评论 -
陈老师的多校联合20140811||HDU 3236 ||2009年武汉站G题 01背包问题
http://acm.hdu.edu.cn/showproblem.php?pid=3236原创 2014-08-12 21:15:25 · 829 阅读 · 0 评论 -
hdu 1864 01背包变形(浮点化整)
http://acm.hdu.edu.cn/showproblem.php?pid=1864Problem Description现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的原创 2014-05-16 10:03:05 · 766 阅读 · 0 评论 -
hdu 2955 01 背包(浮点数)
http://acm.hdu.edu.cn/showproblem.php?pid=2955Problem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, of原创 2014-05-15 14:16:46 · 1771 阅读 · 0 评论 -
hdu 4381 背包
http://acm.hdu.edu.cn/showproblem.php?pid=4381Problem Description There are n boxes in one line numbered 1 to n, at the beginning, all boxes are black. Two kinds of operations are provided原创 2015-02-12 22:15:50 · 1012 阅读 · 0 评论 -
CF19B 01背包(必须装满)
http://codeforces.com/problemset/problem/19/BBob came to a cash & carry store, put n items into his trolley, and went to the checkout counter to pay. Each item is described by its price ci and原创 2015-01-07 22:54:42 · 1552 阅读 · 0 评论 -
poj1276 多重背包问题(二进制解决方案)
http://poj.org/problem?id=1276DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The machine uses原创 2014-10-22 09:35:33 · 1029 阅读 · 0 评论