随笔分类 - 动态规划 背包动态规划
摘要:B. Glass Half Spilled There are 𝑛 glasses on the table numbered 1,…,𝑛. The glass 𝑖 can hold up to 𝑎𝑖 units of water, and currently contains 𝑏𝑖
阅读全文
摘要:D. Yet Another Subarray Problem You are given an array $a_1, a_2, \dots , a_n$ and two integers $m$ and $k$. You can choose some subarray $a_l, a_{l+1
阅读全文
摘要:邱老师玩游戏Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/1136Description邱老师最近在玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中邱老师...
阅读全文
摘要:Partial TreeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5534DescriptionIn mathematics, and more specifically i...
阅读全文
摘要:D - Pick The SticksTime Limit: 1 Sec Memory Limit: 256 MB题目连接无DescriptionThe story happened long long ago. One day, Cao Cao made a special order calle...
阅读全文
摘要:The Highest MarkTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5501Description2045年的SD省队选拔,赛制和三十年前已是完全不同。一场比赛的比赛时...
阅读全文
摘要:Food ProblemTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5445DescriptionFew days before a game of orienteering,...
阅读全文
摘要:B. Modulo SumTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/contest/577/problem/BDescriptionYou are given a sequence of numbersa1, a2...
阅读全文
摘要:4247: 挂饰Time Limit: 1 SecMemory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=4247DescriptionJOI君有N个装在手机上的挂饰,编号为1...N。 JOI君可以将其中的一些...
阅读全文
摘要:In ActionTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=3339DescriptionSince 1945, when the first nuclear bomb wa...
阅读全文
摘要:饭卡(card)Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/31Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余...
阅读全文
摘要:邱老师玩游戏Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/contest/show/65Description邱老师最近在玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中邱老师允许...
阅读全文
摘要:Happy birthdayTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5234Description今天是Gorwin的生日。所以她的妈妈要实现她的一个愿望。Gorwin说她...
阅读全文
摘要:Aragorn's StoryTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/148/EDescriptionOur protagonist is the handsome huma...
阅读全文
摘要:C. Writing CodeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/544/problem/CDescriptionProgrammers working on a large project ...
阅读全文
摘要:Charm BraceletTime Limit: 1 SecMemory Limit: 256 MB题目连接http://poj.org/problem?id=3624DescriptionBessie has gone to the mall's jewelry store and spies ...
阅读全文
摘要:Bone CollectorTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2602DescriptionMany years ago , in Teddy’s hometown t...
阅读全文