2013年4月22日

poj 2151 Check the difficulty of problems 概率dp

摘要: Check the difficulty of problemsTime Limit:2000MSMemory Limit:65536KTotal Submissions:3617Accepted:1580DescriptionOrganizing a programming contest is not an easy job. To avoid making the problems too difficult, the organizer usually expect the contest result satisfy the following two terms:1. All of 阅读全文

posted @ 2013-04-22 21:32 电子幼体 阅读(181) 评论(0) 推荐(0) 编辑

Codeforces 148D - Bag of mice 概率dp

摘要: D. Bag of micetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests flying to the mountains to watch fairies dancing in the moonlight, while the pri 阅读全文

posted @ 2013-04-22 20:41 电子幼体 阅读(150) 评论(0) 推荐(0) 编辑

hdu 3853 LOOPS 圆环之理 概率dp

摘要: LOOPSTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 830Accepted Submission(s): 342Problem DescriptionAkemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl).Homura wants to help her friend Madoka save the world. But because of the plot of the 阅读全文

posted @ 2013-04-22 19:55 电子幼体 阅读(192) 评论(0) 推荐(0) 编辑

UVa 674 - Coin Change 背包dp

摘要: Coin ChangeSuppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.For example, if we have 11 cents, then we can make changes with one 10-cent coin and one 1-cent coin, two 5-cent coins and one 1-cent coi 阅读全文

posted @ 2013-04-22 17:54 电子幼体 阅读(168) 评论(0) 推荐(0) 编辑

UVa 10405 - Longest Common Subsequence 最长公共子序列模板

摘要: Problem C: Longest Common SubsequenceSequence 1:Sequence 2:Given two sequences of characters, print the length of the longest common subsequence of both sequences. For example, the longest common subsequence of the following two sequences:abcdgh aedfhr isadhof length 3.Input consists of pairs of lin 阅读全文

posted @ 2013-04-22 16:49 电子幼体 阅读(127) 评论(0) 推荐(0) 编辑

UVa 12018 - Juice Extractor 切水果dp----------暂时存疑

摘要: Juice ExtractorJerry loses himself in the interesting game: Fruit Ninja. Fruit Ninja is a game of iPhone and iPad in which the players cut the fruits coming from the bottom of the screen and gain the bonus from cutting more than two fruits with a single slice. Once a fruit is cut, it breaks into sma 阅读全文

posted @ 2013-04-22 16:22 电子幼体 阅读(240) 评论(0) 推荐(0) 编辑

UVa 111 - History Grading 最长递增子序列 LIS

摘要: History GradingBackgroundMany problems in Computer Science involve maximizing some measure according to constraints.Consider a history exam in which students are asked to put several historical events into chronological order. Students who order all the events correctly will receive full credit, but 阅读全文

posted @ 2013-04-22 16:10 电子幼体 阅读(182) 评论(0) 推荐(0) 编辑

导航