
dp
文章平均质量分 83
白白不狼
我是菜b
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LIS 最长上升(下降)子序列(模版)
转载请注明出处:http://blog.csdn.net/u012860063最长递增子序列(Longest Increasing Subsequence)下面我们简记为:LIS。假设存在一个序列d[1..9] = 2 1 5 3 6 4 8 9 7,我们可以很轻松的看出来它的LIS长度为5。但是如果一个序列太长后,就不能直接看出来了!下面我们试着逐步找出答案。我们定义一个序列B,然后令 i = ...转载 2018-01-28 20:35:05 · 237 阅读 · 0 评论 -
poj1837 Balance
BalanceTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 15707 Accepted: 9901DescriptionGigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other...原创 2018-03-12 17:27:30 · 162 阅读 · 0 评论 -
poj1276 Cash Machine
Cash MachineTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 38344 Accepted: 13931DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate ...原创 2018-03-12 20:27:51 · 263 阅读 · 0 评论 -
poj1014 Dividing
DividingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 73859 Accepted: 19314DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so tha...原创 2018-03-19 17:10:59 · 271 阅读 · 0 评论 -
poj3267The Cow Lexicon
The Cow LexiconTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 11131 Accepted: 5330DescriptionFew know that the cows have their own dictionary with W (1 ≤ W ≤ 600) words, each containing no ...原创 2018-03-20 18:26:52 · 198 阅读 · 0 评论 -
poj1260 Pearls
PearlsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 9839 Accepted: 5050DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry w...原创 2018-04-09 17:31:38 · 159 阅读 · 0 评论 -
poj 2533 Longest Ordered Subsequence
Longest Ordered SubsequenceTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 59436 Accepted: 26637DescriptionA numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequ...原创 2018-04-09 17:39:02 · 154 阅读 · 0 评论 -
poj1015 Jury Compromise
Jury CompromiseTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 30805 Accepted: 8263 Special JudgeDescriptionIn Frobnia, a far-away country, the verdicts in court trials are determined by a j...原创 2018-04-10 15:59:31 · 148 阅读 · 0 评论 -
poj 1080 Human Gene Functions
Human Gene FunctionsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20313 Accepted: 11333DescriptionIt is well known that a human gene can be considered as a sequence, consisting of four nuc...原创 2018-04-10 18:50:42 · 168 阅读 · 0 评论