摘要: D. Directed Roads time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris 阅读全文
posted @ 2016-08-30 11:09 HARD_UNDERSTAND 阅读(587) 评论(0) 推荐(0) 编辑
摘要: C. Coloring Trees time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris 阅读全文
posted @ 2016-08-30 08:52 HARD_UNDERSTAND 阅读(695) 评论(0) 推荐(0) 编辑
摘要: DISUBSTR - Distinct Substrings no tags no tags Given a string, we need to find the total number of its distinct substrings. Input T- number of test ca 阅读全文
posted @ 2016-08-29 19:04 HARD_UNDERSTAND 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Milk Patterns Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 7586 Accepted: 3448 Case Time Limit: 2000MS Description Farmer John has notic 阅读全文
posted @ 2016-08-29 18:26 HARD_UNDERSTAND 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Musical Theme Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 14334 Accepted: 4945 Description A musical melody is represented as a sequenc 阅读全文
posted @ 2016-08-29 18:19 HARD_UNDERSTAND 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Dominating Patterns Time Limit:3000MS Memory Limit:Unknown 64bit IO Format:%lld & %llu [Submit] [Go Back] [Status] Description The archaeologists are 阅读全文
posted @ 2016-08-28 22:36 HARD_UNDERSTAND 阅读(402) 评论(0) 推荐(0) 编辑
摘要: D. Vasiliy's Multiset time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Author has gone ou 阅读全文
posted @ 2016-08-22 16:18 HARD_UNDERSTAND 阅读(190) 评论(0) 推荐(0) 编辑
摘要: B. Puzzles time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Puzzles time limit per test 阅读全文
posted @ 2016-08-22 14:31 HARD_UNDERSTAND 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 题意: 给一个非降序排列的整数数组a,你的任务是对于一系列询问(i, j),回答ai,ai+1…aj中次数出现最多的值所出现的次数。分析: 由于数列是非降序的,所以所有相等的数都会聚集在一起。这样我们就可以把整个数组进行编码。如-1,1,1,2,2,2,4就可以编码成(-1,1... 阅读全文
posted @ 2016-08-12 21:12 HARD_UNDERSTAND 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 这几天做了几道dp题,发现有几道是很经典的dp模型的变形,总结一下:数字三角形这算是dp的最最最入门的题了吧,但是这题变形的话,还是需要好好想想才能看出来的。 题目:hdu 1176 免费馅饼 题意: 一定时间,天上会从某个位置Xi掉下一块馅饼,1=0;i--){ ... 阅读全文
posted @ 2016-08-12 16:13 HARD_UNDERSTAND 阅读(1059) 评论(0) 推荐(0) 编辑