随笔分类 -  DP

1 2 下一页

ACM-ICPC 2018 南京赛区网络预赛 E题
摘要:ACM-ICPC 2018 南京赛区网络预赛 E题 题目链接: https://nanti.jisuanke.com/t/30994 Dlsj is competing in a contest with n (0 < n \le 20)n(0<n≤20) problems. And he know 阅读全文

posted @ 2018-09-01 21:58 kuangbin 阅读(1389) 评论(0) 推荐(0)

HDU 4833 Best Financing (DP)
摘要:Best FinancingTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 29Accepted Submission(s): 3Problem... 阅读全文

posted @ 2014-05-25 17:51 kuangbin 阅读(1987) 评论(0) 推荐(0)

HDU 4832 Chess (DP)
摘要:ChessTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24Accepted Submission(s): 10Problem Descripti... 阅读全文

posted @ 2014-05-25 17:49 kuangbin 阅读(2236) 评论(0) 推荐(0)

SGU 104. Little shop of flowers (DP)
摘要:104. Little shop of flowerstime limit per test: 0.25 sec.memory limit per test: 4096 KBPROBLEMYou want to arrange the window of your flower shop in a most pleasant way. You haveFbunches of flowers, each being of a different kind, and at least as many vases ordered in a row. The vases are glued onto 阅读全文

posted @ 2014-02-08 14:47 kuangbin 阅读(1231) 评论(0) 推荐(0)

HDU 4597 Play Game (DP,记忆化搜索)
摘要:Play GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 24Accepted Submission(s): 18Problem DescriptionAlice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pi 阅读全文

posted @ 2013-08-24 18:41 kuangbin 阅读(1759) 评论(0) 推荐(0)

HDU 4681 String(2013多校8 1006题 DP)
摘要:StringTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 11Accepted Submission(s): 4Problem DescriptionGiven 3 strings A, B, C, find the longest string D which satisfy the following rules:a) D is the subsequence of Ab) D is the subsequence of Bc) C is 阅读全文

posted @ 2013-08-15 17:06 kuangbin 阅读(781) 评论(0) 推荐(0)

HDU 4632 Palindrome subsequence (2013多校4 1001 DP)
摘要:Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 88Accepted Submission(s): 26Problem DescriptionIn mathematics, a subsequence is a sequence that can be derived from another sequence by deleting some elements without changing t 阅读全文

posted @ 2013-08-01 17:59 kuangbin 阅读(893) 评论(0) 推荐(0)

HDU 2859 Phalanx (DP)
摘要:PhalanxTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 363Accepted Submission(s): 170Problem DescriptionToday is army day, but the servicemen are busy with the phalanx for the celebration of the 60th anniversary of the PRC.A phalanx is a matrix of 阅读全文

posted @ 2013-07-31 17:02 kuangbin 阅读(2079) 评论(0) 推荐(1)

HDU 4562 守护雅典娜(dp)
摘要:守护雅典娜Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 324Accepted Submission(s): 91Problem Description许多塔防游戏都是以经典的“守护雅典娜”为原型的。玩家需要建立各种防御工具来阻止怪物接近我们的女神——雅典娜。这里,我们可以建造的防御工具只有标准圆形状的防御墙,建立在雅典娜与怪物出生点之间的防御墙数目越多,胜利的希望就越大。这里,将问题简化到一个二维坐标系里,并且假设雅典娜的坐标为原点(0, 阅读全文

posted @ 2013-06-22 10:18 kuangbin 阅读(874) 评论(0) 推荐(0)

HDU 4545 魔法串 (简单DP)
摘要:魔法串Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 70Accepted Submission(s): 37Problem Description 小明和他的好朋友小西在玩一个新的游戏,由小西给出一个由小写字母构成的字符串,小明给出另一个比小西更长的字符串,也由小写字母组成,如果能通过魔法转换使小明的串和小西的变成同一个,那么他们两个人都会很开心。这里魔法指的是小明的串可以任意删掉某个字符,或者把某些字符对照字符变化表变化。如: 小西... 阅读全文

posted @ 2013-05-17 21:26 kuangbin 阅读(888) 评论(0) 推荐(0)

POJ 2411 Mondriaan's Dream(压缩DP)
摘要:Mondriaan's DreamTime Limit:3000MSMemory Limit:65536KTotal Submissions:8974Accepted:5187DescriptionSquares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw on, f 阅读全文

posted @ 2013-04-28 17:28 kuangbin 阅读(405) 评论(1) 推荐(0)

ZOJ 4257 Most Powerful (状态压缩DP)
摘要:Most PowerfulTime Limit:2 Seconds Memory Limit:65536 KBRecently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and a lot of power is produced. Researchers know the way every t 阅读全文

posted @ 2013-04-26 22:33 kuangbin 阅读(450) 评论(0) 推荐(0)

POJ 2288 Islands and Bridges (状态压缩DP)
摘要:Islands and BridgesTime Limit:4000MSMemory Limit:65536KTotal Submissions:7685Accepted:1968DescriptionGiven a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, there is also a p 阅读全文

posted @ 2013-04-26 16:07 kuangbin 阅读(501) 评论(0) 推荐(0)

POJ 1185 炮兵阵地 (状态压缩DP)
摘要:炮兵阵地Time Limit:2000MSMemory Limit:65536KTotal Submissions:14519Accepted:5406Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色的网格表示它能够攻击到的区域:沿 阅读全文

posted @ 2013-04-26 12:42 kuangbin 阅读(500) 评论(0) 推荐(1)

POJ 3254 Corn Fields(状态压缩DP)
摘要:Corn FieldsTime Limit:2000MSMemory Limit:65536KTotal Submissions:4739Accepted:2506DescriptionFarmer John has purchased a lush new rectangular pasture composed ofMbyN(1 ≤M≤ 12; 1 ≤N≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares. Regrettably, some of the squ 阅读全文

posted @ 2013-04-26 11:16 kuangbin 阅读(397) 评论(0) 推荐(0)

HDU 3681 Prison Break(状态压缩DP+BFS+二分答案)
摘要:Prison BreakTime Limit: 5000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2178Accepted Submission(s): 533Problem DescriptionRompire is a robot kingdom and a lot of robots live there peacefully. But one day, the king of Rompire was captured by human beings. His t 阅读全文

posted @ 2013-04-25 23:04 kuangbin 阅读(711) 评论(0) 推荐(0)

HDU 3001 Travelling (状态压缩DP)
摘要:TravellingTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2338Accepted Submission(s): 668Problem DescriptionAfter coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on 阅读全文

posted @ 2013-04-25 20:37 kuangbin 阅读(772) 评论(0) 推荐(0)

HDU 1171 Big Event in HDU(背包)
摘要:Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16224Accepted Submission(s): 5725Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College h 阅读全文

posted @ 2013-04-15 20:06 kuangbin 阅读(1834) 评论(0) 推荐(0)

HDU 1074 Doing Homework (状态压缩DP)
摘要:Doing HomeworkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3595Accepted Submission(s): 1424Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of ha 阅读全文

posted @ 2013-04-12 16:56 kuangbin 阅读(1935) 评论(0) 推荐(2)

POJ 1417 True Liars(并查集+DP)
摘要:True LiarsTime Limit:1000MSMemory Limit:10000KTotal Submissions:1556Accepted:457DescriptionAfter having drifted about in a small boat for a couple of days, Akira Crusoe Maeda was finally cast ashore on a foggy island. Though he was exhausted and despaired, he was still fortunate to remember a legend 阅读全文

posted @ 2013-04-06 15:49 kuangbin 阅读(3202) 评论(1) 推荐(1)

1 2 下一页

导航

JAVASCRIPT: