
dp
如雨星空
推荐系统在读研究生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj2229Sumsets递归/动态规划
Sumsets Time Limit: 2000MS Memory Limit: 200000K Total Submissions: 17159 Accepted: 6760 Description Farmer John commanded his cows to search for different sets of nu原创 2016-10-12 21:21:22 · 409 阅读 · 0 评论 -
poj2063 完全背包
Investment Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 10434 Accepted: 3668 Description John never knew he had a grand-uncle, until he received the not原创 2017-02-20 17:40:52 · 426 阅读 · 0 评论 -
POJ 3181Dollar Dayz
Dollar Dayz Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6735 Accepted: 2523 DescriptionFarmer John goes to Dollar Days at The Cow Store and discovers an unlimited number of t原创 2017-02-10 20:05:57 · 381 阅读 · 0 评论 -
01背包 poj2184
分析一:把其中一个属性值看做value,另一个看做weight,便成了01背包的变形 设dp[j]为前i个cow放入容量为j的背包中所获取的最大weight,可以找到递推公式 dp[j] = max(dp[j]+dp[j-value[i]]+weight[i]); 分析二:在分析一的基础上,可以看成是求填满容量分别为0,1,.....的01背包所获得最大价值中的最大值原创 2017-02-10 13:02:26 · 302 阅读 · 0 评论 -
poj1384 Piggy-Bank 完全背包
Piggy-Bank Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 11329 Accepted: 5495 DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial su原创 2017-02-10 12:23:02 · 842 阅读 · 0 评论 -
poj1837动态规划
Balance Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 14035 Accepted: 8825 Description Gigel has a strange "balance" and he wants to poise it. Actually,原创 2017-02-09 22:06:23 · 266 阅读 · 0 评论 -
poj3624
Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 34882 Accepted: 15440 Description Bessie has gone to the mall's jewelry store and spies a ch原创 2016-12-05 23:00:06 · 1512 阅读 · 0 评论 -
poj3616 Miking Time dp
Milking Time Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8267 Accepted: 3454 Description Bessie is such a hard-working cow. In fact, she is so focused原创 2016-10-18 12:15:55 · 335 阅读 · 0 评论 -
poj3280Cheapest Palindrome
Cheapest Palindrome Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8864 Accepted: 4299 Description Keeping track of all the cows can be a tricky task so F原创 2016-10-18 12:04:23 · 306 阅读 · 0 评论 -
poj2385Apple Catching动归
Apple Catching Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11435 Accepted: 5514 Description It is a little known fact that cows love apples. Farmer Joh原创 2016-10-12 21:28:25 · 644 阅读 · 0 评论 -
poj3276 Face The Right Way 反转问题
Face The Right Way Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5709 Accepted: 2641 Description Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a原创 2017-11-21 20:26:30 · 228 阅读 · 0 评论