<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>01背包 on 111qqz's blog</title><link>https://111qqz.com/en/tags/01%E8%83%8C%E5%8C%85/</link><description>Recent content in 01背包 on 111qqz's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2015-2026 111qqz</copyright><lastBuildDate>Wed, 16 Nov 2016 07:28:33 +0000</lastBuildDate><atom:link href="https://111qqz.com/en/tags/01%E8%83%8C%E5%8C%85/index.xml" rel="self" type="application/rss+xml"/><item><title>(dp专题006)hdu 2602 Bone Collector（01背包）</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-11-16-hdu2602/</link><pubDate>Wed, 16 Nov 2016 07:28:33 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-11-16-hdu2602/</guid><description>&lt;p&gt;题目链接&lt;/p&gt;
&lt;p&gt;题意:容量为V的背包，n个骨头，给出价值和体积，问最多能装多少价值的背包。&lt;/p&gt;</description></item><item><title>[dp专题005]hdu 1864最大报销额（01背包，垃圾题）</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-11-16-hdu1864/</link><pubDate>Wed, 16 Nov 2016 07:04:20 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-11-16-hdu1864/</guid><description>&lt;p&gt;&lt;a href="http://acm.hdu.edu.cn/showproblem.php?pid=1864" target="_blank" rel="noreferrer"&gt;hdu1864题目链接&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;题意：中文题目，不多说了。&lt;/p&gt;
&lt;p&gt;思路：正解是01背包，呵呵呵。&lt;/p&gt;
&lt;p&gt;出题人是傻逼吗？&lt;/p&gt;</description></item><item><title>(dp专题004)hdu 2955Robberies（01背包变形）</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-11-15-hdu2955/</link><pubDate>Tue, 15 Nov 2016 11:19:56 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-11-15-hdu2955/</guid><description>&lt;p&gt;&lt;a href="http://acm.hdu.edu.cn/showproblem.php?pid=2955" target="_blank" rel="noreferrer"&gt;题目链接&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;题意： 给出n个银行 ，以及抢劫每个银行可以得到的价值和被抓的概率，不同银行之间被抓的概率是相互独立的，现在给出安全概率p，只有当概率从小于安全概率时才是安全的，问最多能抢劫多少价值。&lt;/p&gt;</description></item><item><title>BZOJ 3407: [Usaco2009 Oct]Bessie's Weight Problem 贝茜的体重问题(01背包)</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-04-14-bzoj-3407/</link><pubDate>Thu, 14 Apr 2016 11:39:25 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-04-14-bzoj-3407/</guid><description>&lt;h2 class="relative group"&gt;3407: [Usaco2009 Oct]Bessie&amp;rsquo;s Weight Problem 贝茜的体重问题
 &lt;div id="3407-usaco2009-octbessies-weight-problem-贝茜的体重问题" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3407-usaco2009-octbessies-weight-problem-%e8%b4%9d%e8%8c%9c%e7%9a%84%e4%bd%93%e9%87%8d%e9%97%ae%e9%a2%98" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Time Limit: 3 Sec  Memory Limit: 128 MB
Submit: 88  Solved: 79
[&lt;a href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=3407" target="_blank" rel="noreferrer"&gt;Submit&lt;/a&gt;][&lt;a href="http://www.lydsy.com/JudgeOnline/problemstatus.php?id=3407" target="_blank" rel="noreferrer"&gt;Status&lt;/a&gt;][&lt;a href="http://www.lydsy.com/JudgeOnline/bbs.php?id=3407" target="_blank" rel="noreferrer"&gt;Discuss&lt;/a&gt;]&lt;/p&gt;</description></item><item><title>BZOJ 1649: [Usaco2006 Dec]Cow Roller Coaster (dp，类似01背包)</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-04-11-bzoj-1649/</link><pubDate>Mon, 11 Apr 2016 09:19:52 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-04-11-bzoj-1649/</guid><description>&lt;h2 class="relative group"&gt;
 &lt;div id="" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Time Limit: 5 Sec  Memory Limit: 64 MB
Submit: 504  Solved: 265
[&lt;a href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=1649" target="_blank" rel="noreferrer"&gt;Submit&lt;/a&gt;][&lt;a href="http://www.lydsy.com/JudgeOnline/problemstatus.php?id=1649" target="_blank" rel="noreferrer"&gt;Status&lt;/a&gt;][&lt;a href="http://www.lydsy.com/JudgeOnline/bbs.php?id=1649" target="_blank" rel="noreferrer"&gt;Discuss&lt;/a&gt;]&lt;/p&gt;

&lt;h2 class="relative group"&gt;Description
 &lt;div id="description" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#description" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The cows are building a roller coaster! They want your help to design as fun a roller coaster as possible, while keeping to the budget. The roller coaster will be built on a long linear stretch of land of length L (1 &amp;lt;= L &amp;lt;= 1,000). The roller coaster comprises a collection of some of the N (1 &amp;lt;= N &amp;lt;= 10,000) different interchangable components. Each component i has a fixed length Wi (1 &amp;lt;= Wi &amp;lt;= L). Due to varying terrain, each component i can be only built starting at location Xi (0 &amp;lt;= Xi &amp;lt;= L-Wi). The cows want to string together various roller coaster components starting at 0 and ending at L so that the end of each component (except the last) is the start of the next component. Each component i has a &amp;ldquo;fun rating&amp;rdquo; Fi (1 &amp;lt;= Fi &amp;lt;= 1,000,000) and a cost Ci (1 &amp;lt;= Ci &amp;lt;= 1000). The total fun of the roller coster is the sum of the fun from each component used; the total cost is likewise the sum of the costs of each component used. The cows&amp;rsquo; total budget is B (1 &amp;lt;= B &amp;lt;= 1000). Help the cows determine the most fun roller coaster that they can build with their budget.&lt;/p&gt;</description></item><item><title>codeforces #319 B - Modulo Sum (抽屉原理，dp)</title><link>https://111qqz.com/en/post/acm-icpc/2015/2015-09-16-codeforces319b-modulosume68abde5b189e58e9fe79086efbc8cdp/</link><pubDate>Wed, 16 Sep 2015 03:24:00 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2015/2015-09-16-codeforces319b-modulosume68abde5b189e58e9fe79086efbc8cdp/</guid><description>&lt;p&gt;背包还是理解的不够透彻．．&lt;/p&gt;
&lt;p&gt;因为每次都是用那个一维形式的．&lt;/p&gt;
&lt;p&gt;这道题的做法类似01背包.&lt;/p&gt;</description></item><item><title>hdu 1171 Big Event in HDU （母函数，01背包）</title><link>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu1171/</link><pubDate>Sat, 04 Apr 2015 14:56:00 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu1171/</guid><description>&lt;p&gt;**Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 26534    Accepted Submission(s): 9332
**&lt;/p&gt;
&lt;p&gt;Problem Description&lt;/p&gt;
&lt;p&gt;Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don&amp;rsquo;t know that Computer College had ever been split into Computer College and Software College in 2002.
The splitting is absolutely a big event in HDU! At the same time, it is a trouble thing too. All facilities must go halves. First, all facilities are assessed, and two facilities are thought to be same if they have the same value. It is assumed that there is N (0&amp;lt;N&amp;lt;1000) kinds of facilities (different value, different kinds).&lt;/p&gt;</description></item><item><title>hdu 1203 I NEED A OFFER! （01背包）</title><link>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu1203/</link><pubDate>Sat, 04 Apr 2015 12:12:00 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu1203/</guid><description>&lt;h1 class="relative group"&gt;I NEED A OFFER!
 &lt;div id="i-need-a-offer" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#i-need-a-offer" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h1&gt;
&lt;p&gt;**Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 18287    Accepted Submission(s): 7320
**&lt;/p&gt;</description></item><item><title>hdu 2546 饭卡 （01背包）</title><link>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu2546/</link><pubDate>Sat, 04 Apr 2015 08:53:00 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2015/2015-04-04-hdu2546/</guid><description>&lt;h1 class="relative group"&gt;饭卡
 &lt;div id="饭卡" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e9%a5%ad%e5%8d%a1" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h1&gt;
&lt;p&gt;**Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 14225 Accepted Submission(s): 4945
**&lt;/p&gt;</description></item></channel></rss>