摘要:
很久以前就励志想好好学习下dp,但是很多时候都没有静下心来搞,马上就要区域赛了,在做最后一个月的冲刺吧。先来说说什么是dp,刚刚开始入门刷题的时候,总感觉,自己不会做的题目就是dp,但是,如果认真想想后,感觉dp还是很有意思的,以前看LRJ老师的书,书本上说,要想学会dp,首先得学会写暴力。dp就是... 阅读全文
摘要:
Ordered FractionsConsider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N.Here is the set when N ... 阅读全文
摘要:
题目大意: 这道题是说,给你一个长度为n的数组,然后,这个数组中只能包含1 2 3。求出将这个序列从小到大排序后的序列,所需要的最少的步数。解题思路: 这道题,拿到后,想到以前做过的一个bit求逆序数的题目,想了想,完全不搭边啊。于是,发现了,由于这个数组中只有1 2 3 这三个数字,所以,我们... 阅读全文
摘要:
A:A. Multiplication Tabletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's consider a table c... 阅读全文
摘要:
A - Balanced LineupCrawling in process... Crawling failed Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice P... 阅读全文
摘要:
Elven PostmanTime Limit: 1500/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 558Accepted Submission(s): 308 Pro... 阅读全文
摘要:
Submit Status Practice POJ 1251DescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on ... 阅读全文
摘要:
A Corrupt Mayor's Performance ArtTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 100000/100000 K (Java/Others) Total Submission(s): 1545Accepted S... 阅读全文
摘要:
Pretty PoemTime Limit: 2 Seconds Memory Limit: 65536 KBPoetry is a form of literature that uses aesthetic and rhythmic qualities of language. There... 阅读全文
摘要:
统计难题Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 25579Accepted Submission(s): 10451Problem Des... 阅读全文