DP
文章平均质量分 73
MrBlankIsAwesome
这个作者很懒,什么都没留下…
展开
-
CodeForces 730J Bottles (DP 01背包)
Bottles Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 730J Description Nick has n bottles of soda left after his birthday. Each bottle原创 2016-10-27 21:52:35 · 1323 阅读 · 0 评论 -
HDU 4539 郑厂长系列故事——排兵布阵 (状压DP)
郑厂长系列故事——排兵布阵Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 2690 Accepted Submission(s): 958Problem Description 郑厂长不是正厂长 也不是副厂长 他原创 2016-08-23 14:10:21 · 496 阅读 · 0 评论 -
POJ 1155 TELE (树形DP)
TELE Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4931 Accepted: 2715 DescriptionA TV-network plans to broadcast an important football match. Their network of transmitters and原创 2016-09-13 00:19:15 · 254 阅读 · 0 评论 -
POJ 1185 炮兵阵地 (状压DP)
炮兵阵地 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 25954 Accepted: 10004 Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用”H” 表示),也可能是平原(用”P”表示),如下图。在每一格原创 2016-08-22 16:10:33 · 272 阅读 · 0 评论 -
POJ 2486 Apple Tree (树形DP)
Apple Tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9916 Accepted: 3302 DescriptionWshxzt is a lovely girl. She likes apple very much. One day HX takes her to an apple tre原创 2016-09-12 17:01:14 · 291 阅读 · 0 评论 -
HDU 1561 The more, The Better (树形DP)
The more, The BetterTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7552 Accepted Submission(s): 4443Problem Description ACboy很喜欢玩一种战略游戏,在一原创 2016-08-31 19:43:17 · 224 阅读 · 0 评论 -
POJ 3056 The Bavarian Beer Party (区间DP)
The Bavarian Beer Party Time Limit: 6000MS Memory Limit: 65536K Total Submissions: 1055 Accepted: 395 DescriptionThe professors of the Bayerische Mathematiker Verein have their annual party原创 2016-08-30 20:08:18 · 358 阅读 · 0 评论 -
HDU 4570 Multi-bit Trie (区间DP)
Multi-bit TrieTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 803 Accepted Submission(s): 342Problem Description IP lookup is one of the原创 2016-08-30 18:53:12 · 247 阅读 · 0 评论 -
POJ 3186 Treats for the Cows (区间DP)
Treats for the Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5191 Accepted: 2712 DescriptionFJ has purchased N (1 <= N <= 2000) yummy treats for the cows who get money for原创 2016-08-30 16:40:01 · 305 阅读 · 0 评论 -
POJ 1947 Rebuilding Roads ( 树形DP )
POJ 1947 Rebuilding Roads ( 树形DP ) Posted on 2016年1月27日 by Natla 原题链接 :http://poj.org/problem?id=1947题意:农场之间以树形的方式连接,问只要断几条边。就可以有P个点被孤立出来思路:dp[s][i]:记录s结点,要得到一棵i个节点的子树去掉的最少边数 考虑其儿子k 1)如果不去掉k子树,则 d原创 2016-08-31 18:51:00 · 348 阅读 · 0 评论 -
HDU 1565 方格取数(1) (状压DP)
方格取数(1)Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8141 Accepted Submission(s): 3073Problem Description 给你一个n*n的格子的棋盘,每个格子里面有一个非负数。 从原创 2016-08-18 16:20:24 · 328 阅读 · 0 评论 -
HDU1422 重温世界杯(DP)
重温世界杯 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2398 Accepted Submission(s): 723Problem Description 世界杯结束了,意大利人连本带利的收回了法国人6年前欠他们的债,捧原创 2016-07-25 16:16:22 · 250 阅读 · 0 评论 -
POJ 3254 Corn Fields (状压DP)
Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 13419 Accepted: 7046 DescriptionFarmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M原创 2016-08-23 17:57:34 · 201 阅读 · 0 评论 -
POJ 2411 Mondriaan's Dream ( 状压DP )
Mondriaan’s Dream Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 15491 Accepted: 8936 DescriptionSquares and rectangles fascinated the famous Dutch painter Piet Mondriaan. On原创 2016-08-23 20:10:23 · 214 阅读 · 0 评论 -
LightOJ 1017 Brush (III) (DP)
Brush (III) Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu SubmitStatus Description Samir returned home from the contest and got angry after seeing his room dusty. Who l原创 2016-09-25 19:17:59 · 237 阅读 · 0 评论 -
HDU 1011 Starship Troopers (树形DP)
Starship TroopersTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17684 Accepted Submission(s): 4691Problem Description You, the leader of原创 2016-09-08 20:55:23 · 290 阅读 · 0 评论 -
HDU 4632 Palindrome subsequence (区间DP)
Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65535 K (Java/Others) Total Submission(s): 3068 Accepted Submission(s): 1262Problem Description In mathematics,原创 2016-08-26 20:47:40 · 430 阅读 · 0 评论 -
HDU 5898 odd-even number (数位DP) 2016 ACM/ICPC Asia Regional Shenyang Online
odd-even numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 220 Accepted Submission(s): 115Problem Description For a number,if the lengt原创 2016-09-19 11:21:06 · 372 阅读 · 0 评论 -
HDU 2476 String painter (区间DP)
String painterTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3524 Accepted Submission(s): 1639Problem Description There are two strings A原创 2016-08-26 16:16:14 · 421 阅读 · 0 评论 -
POJ 2955 Brackets (区间DP)
Brackets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6420 Accepted: 3436 DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequ原创 2016-08-25 18:37:09 · 184 阅读 · 0 评论 -
CodeForces 548D (单调栈+伪DP)
Mike and Feet Time Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u SubmitStatusDescription Mike is the president of country What-The-Fatherland. There are n bears livin原创 2016-09-05 10:56:25 · 312 阅读 · 0 评论 -
UVA 11584 Partitioning by Palindromes (区间DP)
UVA 11584 Partitioning by Palindromes We say a sequence of char- acters is a palindrome if it is the same written forwards and backwards. For example, ‘racecar’ is a palindrome, but ‘fastcar’ is not.原创 2016-08-25 15:56:29 · 338 阅读 · 0 评论 -
Light OJ 1037 Agent 47 (状压DP)
Agent 47 Time Limit: 2000MS Memory Limit: 32768KB 64bit IO Format: %lld & %llu SubmitStatusuDebugDescription Agent 47 is in a dangerous Mission “Black Monster Defeat - 15”. It is a secret原创 2016-09-04 17:14:46 · 225 阅读 · 0 评论 -
HDU 2553 N皇后问题 (状压+dfs)
N皇后问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18785 Accepted Submission(s): 8510Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个原创 2016-09-16 17:33:10 · 709 阅读 · 1 评论 -
HDU 5410 CRB and His Birthday (01背包+完全背包)
CRB and His BirthdayTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1648 Accepted Submission(s): 777Problem Description Today is CRB’s birt原创 2016-08-12 19:00:55 · 262 阅读 · 0 评论 -
HDU1159 Common Subsequence (LCS)
Common SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33728 Accepted Submission(s): 15342Problem Description A subsequence of a原创 2016-07-26 09:45:13 · 210 阅读 · 0 评论 -
HDU1513 Palindrome(LCS+滚动数组)
PalindromeTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4960 Accepted Submission(s): 1703Problem Description A palindrome is a symmetrica原创 2016-08-01 10:21:38 · 269 阅读 · 0 评论 -
LightOJ 1013 Love Calculator(LCS)
Love Calculator Time Limit: 2000msMemory Limit: 32768KB 64-bit integer IO format: %lld Java class name: Main Submit Status Yes, you are developing a ‘Love calculator’. The software would be qui原创 2016-07-26 15:41:05 · 304 阅读 · 0 评论 -
HDU2191(水多重背包)
悼念512汶川大地震遇难同胞——珍惜现在,感恩生活Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 24240 Accepted Submission(s): 10222Problem Description 急!灾区的食物依然短缺原创 2016-07-25 09:55:04 · 188 阅读 · 0 评论 -
HDU1171(01背包)
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33311 Accepted Submission(s): 11596Problem Description Nowadays, we all kn原创 2016-04-13 21:42:34 · 322 阅读 · 0 评论 -
HDU2602
Q - Bone CollectorDescription 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 t原创 2015-08-19 11:32:01 · 280 阅读 · 0 评论 -
HDU1176 免费馅饼(水DP)
免费馅饼Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 40581 Accepted Submission(s): 13904Problem Description 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽原创 2016-07-23 11:22:26 · 200 阅读 · 0 评论 -
HDU2955(01背包)
RobberiesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18778 Accepted Submission(s): 6933Problem Description The aspiring Roy the Robber原创 2016-04-14 19:54:22 · 225 阅读 · 0 评论 -
HDU3466(01背包)
Proud MerchantsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others) Total Submission(s): 4437 Accepted Submission(s): 1837Problem Description Recently, iSea went to原创 2016-04-14 17:04:48 · 260 阅读 · 0 评论 -
HDU2546(01背包)
饭卡Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 19863 Accepted Submission(s): 6914Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购原创 2016-04-13 22:08:19 · 286 阅读 · 0 评论 -
HDU2577
How to TypeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5198 Accepted Submission(s): 2323Problem Description Pirates have finished devel原创 2015-12-07 21:31:11 · 252 阅读 · 0 评论 -
HDU2571
命运Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 13767 Accepted Submission(s): 4846Problem Description 穿过幽谷意味着离大魔王lemon已经无限接近了! 可谁能想到,yif原创 2015-12-07 20:13:11 · 361 阅读 · 0 评论 -
HDU5188(有限制的01背包)
zhx and contest Problem Description As one of the most powerful brushes in the world, zhx usually takes part in all kinds of contests. One day, zhx takes part in an contest. He found the contest ver原创 2016-01-25 11:04:37 · 342 阅读 · 0 评论 -
HDU1231
A - 最大连续子序列 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatus Description 给定K个整数的序列{ N1, N2, …, NK },其任意连续子序列可表示为{ Ni, Ni+1, …, Nj },其中 1 <= i <= j <= K。最大原创 2015-08-19 11:55:24 · 255 阅读 · 0 评论 -
POJ 3903(LIS)
Stock Exchange Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6092 Accepted: 2130 DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while ot原创 2016-07-26 17:15:34 · 434 阅读 · 0 评论