
DP
文章平均质量分 88
conquerheaven
这个作者很懒,什么都没留下…
展开
-
uva Diatribe against Pigeonholes (模拟 但是被分在DP的类别中)
Diatribe against Pigeonholes BackgroundIn an anonymous town there is a carpenter, the only one in many kilometres,specialized in making pieces of furniture (and famous for being a bit stingywith t原创 2014-01-16 15:58:38 · 725 阅读 · 0 评论 -
uva 10453 Make Palindrome(DP)
Problem B : Make PalindromeFrom:UVA, 10453Problem AMake PalindromeInput: standard inputOutput: standard outputTime Limit: 8 secondsBy definition palindrome is a string which is not c原创 2014-01-22 23:27:42 · 602 阅读 · 0 评论 -
uva 11617 An Odd Love (dp)
D. An Odd Love ContextSpring has arrived and our friend Pepito has fallen in love. But he is not sure if shealso loves him, so he decides toask the daisies. He takes a daisy andalternately speak原创 2014-01-14 21:05:01 · 794 阅读 · 0 评论 -
uva 11569 Lovely Hint (DP)
Problem E: Lovely HintJay and Kay decide to play a game. They write an English sentence on a piece of paper. The objective of the game is to pick out some of the written alphabets, rearrange them,原创 2014-01-14 17:57:16 · 677 阅读 · 0 评论 -
uva 11471 Arrange the Tiles (DP)
Problem A Arrange the TilesTime Limit : 4 seconds There is a board of dimension 4 x 3. Each cell of the board is a container that can hold a tile. The board is shown in t原创 2014-01-14 14:42:18 · 978 阅读 · 0 评论 -
uva 11450 Wedding Shopping (DP)
D. Wedding Shopping BackgroundOne of our best friends is getting married and we all are nervous because he is thefirst of us who is doing something similar. In fact, we have never assisted to原创 2014-01-14 13:13:49 · 566 阅读 · 0 评论 -
uva 11400 Lighting System Design (DP)
Problem G : Lighting System DesignFrom:UVA, 11400Problem FLighting SystemDesignInput: StandardInputOutput: StandardOutput You are given the task to designa lighting system for a huge原创 2014-01-13 21:17:15 · 689 阅读 · 0 评论 -
uva 11372 Arranging a Contest(DP)
ProblemB: Arranging a ContestToday is 29 November, 2007.A month later, we will have our traditional Contest of Newbies 2007, so it is time for theNewbie Problemsetters (NPS) to come up with原创 2014-01-14 00:49:54 · 777 阅读 · 0 评论 -
uva 11391 Blobs in the Board (DP)
IIU C ONLINE C ON TEST2008Problem G: Blobs in the BoardInput: standard inputOutput: standard outputYou are given a board consists of R rows and C column原创 2014-01-12 22:04:20 · 887 阅读 · 0 评论 -
uva 11311 EXCLUSIVELY EDIBLE (DP)
Problem EEXCLUSIVELY EDIBLEHansel and Gretel like cakes, but especially the so called �grid cake" served in Wolfgang Puck's restaurants. It is made ofmn pieces of different cakes, resembling原创 2014-01-11 14:33:16 · 1258 阅读 · 0 评论 -
uva 11341 Term Strategy (DP)
B - Term StrategyTime Limit: 1 sec Memory Limit: 16MBStudent Peter was playing billiard all the term and for that reason he missedall his lectures. Unfortunately that's the time for term exams原创 2014-01-11 16:58:56 · 939 阅读 · 0 评论 -
uva 10654 The Uxuhul Voting System(DP+记忆化)
Problem DThe Uxuhul Voting SystemInput: standard inputOutput: standard outputTime Limit: 1 secondOne of the world's first civilizations was that of the ancient Uxuhul indians, in the jungl原创 2014-01-10 13:36:38 · 763 阅读 · 0 评论 -
uva 11485 Extreme Discrete Summation(DP)
EExtreme Discrete Summation Given set S what is the value of the right hand side of thefollowing assignment? In other wordswhat is the value of A.For example if S={1.2, 3.6, 4原创 2014-01-15 12:11:06 · 673 阅读 · 0 评论 -
uva 10549 Russian Dolls (DP)
Problem D : Russian DollsFrom:UVA, 10549Problem A: Russian DollsRussian nesting dolls are brightly painted hollowwooden figures. The dolls in a set have roughly the same shape, typically human原创 2014-01-16 19:44:46 · 995 阅读 · 0 评论 -
uva 11578 Situp Benches (DP)求完dp之后求路径
Problem B: Situp BenchesThe gym at the University of Alberta has two identical sit up benches that are side by side. Each of these benches can be inclined in 10 degree increments between 10 degree原创 2014-01-18 16:28:27 · 922 阅读 · 0 评论 -
hdu 4734 F(x)(DP)
F(x)Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1306 Accepted Submission(s): 509Problem DescriptionFor a decimal number x with原创 2014-05-16 21:42:12 · 661 阅读 · 0 评论 -
uva 11780 - Miles 2 Km(dp+Fibonacci)
Miles 2 Km It is a well known fact that you can use Fibonacci numbers to convert distances from miles 2 kilometers. Well, it's actually not a well known fact. It is, however, a well known原创 2014-03-18 16:36:19 · 764 阅读 · 0 评论 -
uva 11700 Pipes(DP)
Problem G : PipesFrom:UVA, 11700Problem B: PipesAfter writing a solver for the "moveable maze" game last week, you have grown tired of it. After all, you already know the optimal solution.原创 2014-03-07 20:56:59 · 666 阅读 · 0 评论 -
uva 10149 - Yahtzee(DP)
Problem A - YahtzeeThe game of Yahtzee involves 5 dice, which are thrown in 13 rounds. A score card contains 13 categories; each round may be scored in a category of the player's choosing, but each原创 2014-03-04 20:53:42 · 1114 阅读 · 0 评论 -
uva10651 - Pebble Solitaire(dp)
Problem APebble SolitaireInput: standard inputOutput: standard outputTime Limit: 1 second Pebble solitaire is an interesting game. This is a game where you are given a board with an arrang原创 2014-03-03 16:34:06 · 620 阅读 · 0 评论 -
uva 164 String Computer(DP)
String ComputerExtel have just brought out their newest computer, a string processing computer dubbed the X9091. It is hoped that it will have some value in cryptography and related fiel原创 2014-02-19 15:45:34 · 1133 阅读 · 0 评论 -
uva 10564 Paths through the Hourglass(DP)
Problem FPaths through the HourglassInput: Standard InputOutput: Standard Output Time Limit: 2 Seconds In the hourglass to the right a path is marked. A path always starts at the first row a原创 2014-02-18 15:18:34 · 647 阅读 · 0 评论 -
uva 11598 - Optimal Segments(DP+暴力)
COptimal SegmentsInput: Standard InputOutput: Standard OutputConsider a grid of size 1 x N. Each cell of the grid has the following properties· Cell C of the grid has a value o原创 2014-02-21 15:27:45 · 590 阅读 · 0 评论 -
uva 11691 - Allergy Test(DP+map)
Problem C - Allergy TestTime limit: X secondsA test for allergy is conducted over the course of several days, andconsists of exposing you to different substances (so calledallergens). The goal i原创 2014-02-10 15:24:03 · 1093 阅读 · 1 评论 -
uva 11584 - Partitioning by Palindromes(DP)
Problem H: Partitioning by PalindromesWe say a sequence of characters is a palindrome if it is the same writtenforwards and backwards. For example, 'racecar' is a palindrome, but 'fastcar' is not.原创 2014-02-08 20:18:54 · 600 阅读 · 0 评论 -
uva 11766 Racing Car Computer(DP)
FRacing Car ComputerInput: Standard InputOutput: Standard OutputThe racing cars of today are equipped with so many sophisticated equipment. Introduction of a new visual transduce原创 2014-01-27 22:36:22 · 673 阅读 · 0 评论 -
uva 10599 Robots(II) (DP)
Robots(II)Time Limit1 SecondYour company provides robots that can be used to pick up litter from fields after sporting events and concerts. Before robots are assigned to a jo原创 2014-01-09 21:47:47 · 620 阅读 · 0 评论 -
uva 10118 (Free Candies)(DP)
Problem B. Free CandiesThe ProblemLittle Bob is playing a game. He wants to win some candies in it - as many as possible.There are 4 piles, each pile contains N candies. Bob is g原创 2014-01-09 00:11:47 · 728 阅读 · 0 评论 -
uva 11258 String Partition(DP)
Problem F - String PartitionJohn was absurdly busy for preparing a programming contest recently. He wanted to create a ridiculously easy problem for the contest. His problem was not only easy, b原创 2014-01-08 12:18:27 · 636 阅读 · 0 评论 -
uva 116(Unidirectional TSP)(DP)
Unidirectional TSPBackgroundProblems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI ro原创 2014-01-02 17:26:33 · 591 阅读 · 0 评论 -
uva 10465 (Homer Simpson) (DP)
Homer SimpsonTime Limit: 3 secondsMemory Limit: 32 MBHomer Simpson, a very smart guy, likes eating Krusty-burgers. It takes Homer m minutes to eat a Krusty- burger. However原创 2014-01-03 00:27:29 · 497 阅读 · 0 评论 -
uva 10285 Longest Run on a Snowboard (DP)
Longest Run on a SnowboardInput: standard inputOutput: standard outputTime Limit: 5 seconds Memory Limit:32 MBMichael likes snowboarding. That's not very surprising, since snowboar原创 2014-01-03 00:07:28 · 529 阅读 · 0 评论 -
poj 3280 Cheapest Palindrome
Cheapest PalindromeTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 4970 Accepted: 2416DescriptionKeeping track of all the cows can be a tricky task so F原创 2013-11-12 21:22:21 · 625 阅读 · 0 评论 -
poj 1742 Coins (DP)
CoinsTime Limit: 3000MS Memory Limit: 30000KTotal Submissions: 26484 Accepted: 8972DescriptionPeople in Silverland use coins.They have coins of value A1,A2,A3...A原创 2014-01-02 15:11:50 · 604 阅读 · 0 评论 -
hdu 3525 Orienteering
OrienteeringTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 735 Accepted Submission(s): 186Problem DescriptionThe Orienteering co原创 2013-11-23 21:25:05 · 929 阅读 · 0 评论 -
poj 3616
Milking TimeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3850 Accepted: 1622DescriptionBessie is such a hard-working cow. In fact, she is so focuse原创 2013-11-03 21:01:21 · 650 阅读 · 0 评论 -
poj 2385
Apple CatchingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6637 Accepted: 3227DescriptionIt is a little known fact that cows love apples. Farmer John原创 2013-11-03 00:01:31 · 820 阅读 · 0 评论 -
poj 2229
SumsetsTime Limit: 2000MS Memory Limit: 200000KTotal Submissions: 11266 Accepted: 4531DescriptionFarmer John commanded his cows to search for different sets of nu原创 2013-11-02 19:44:00 · 623 阅读 · 0 评论 -
poj 3176
Cow BowlingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12393 Accepted: 8168DescriptionThe cows don't use actual bowling balls when they go bowling.原创 2013-11-02 19:26:20 · 571 阅读 · 0 评论 -
uva 348 Optimal Array Multiplication Sequence (DP)
Optimal Array Multiplication SequenceGiven two arrays A and B, we can determine the array C =A B using the standard definition of matrix multiplication: The number of columns in原创 2014-01-03 19:16:40 · 496 阅读 · 0 评论