上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 94 下一页

2013年4月24日

POJ 3693 Maximum repetition substring (后缀数组+RMQ 求重复最多的连续子串)

摘要: Maximum repetition substringTime Limit:1000MSMemory Limit:65536KTotal Submissions:5292Accepted:1573DescriptionThe repetition number of a string is defined as the maximum numberRsuch that the string can be partitioned intoRsame consecutive substrings. For example, the repetition number of "ababa 阅读全文

posted @ 2013-04-24 22:42 kuangbin 阅读(1008) 评论(0) 推荐(1) 编辑

URAL 1297 Palindrome(后缀数组求最长回文子串)

摘要: PalindromeTime Limit:1000MSMemory Limit:16384KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThe “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that the agent from the competing «Robots Unlimited» has infiltrated into “U.S. Ro 阅读全文

posted @ 2013-04-24 15:13 kuangbin 阅读(679) 评论(0) 推荐(0) 编辑

SPOJ 694. Distinct Substrings (不相同的子串的个数)

摘要: 题目链接:http://www.spoj.com/problems/DISUBSTR/694. Distinct SubstringsProblem code: DISUBSTRGiven a string, we need to find the total number of its distinct substrings.InputT- number of test cases. T<=20;Each test case consists of one string, whose length is <= 1000OutputFor each test case output 阅读全文

posted @ 2013-04-24 10:29 kuangbin 阅读(2320) 评论(0) 推荐(1) 编辑

POJ 3261 Milk Patterns (后缀数组,求可重叠的k次最长重复子串)

摘要: Milk PatternsTime Limit:5000MSMemory Limit:65536KTotal Submissions:7586Accepted:3448Case Time Limit:2000MSDescriptionFarmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he can't predict the quality of mi 阅读全文

posted @ 2013-04-24 09:30 kuangbin 阅读(702) 评论(0) 推荐(0) 编辑

2013年4月23日

POJ 1743 Musical Theme (后缀数组,求最长不重叠重复子串)

摘要: Musical ThemeTime Limit:1000MSMemory Limit:30000KTotal Submissions:14334Accepted:4945DescriptionA musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It is unfortunate but true that this representation 阅读全文

posted @ 2013-04-23 23:58 kuangbin 阅读(1291) 评论(0) 推荐(0) 编辑

2013年4月21日

Splay Tree(伸展树总结)

摘要: 伸展树是比较神奇的,它可以做很多线段树不能实现的事情。最近做伸展树做了好长时间了,现在重新把题目整理下,代码统一些一下呢。说明多是含在代码的注释中。刚开始学,可以看论文,然后按照别人的代码去写。我是参照cxlove大神学习的:http://blog.csdn.net/acm_cxlove/article/details/7815019还有HH的:http://www.notonlysuccess.com/index.php/splay-tree/学习算法只有经过自己不断写了才能完全掌握,代码风格也要适合自己的。1、POJ 3468 A Simple Problem with Integers 阅读全文

posted @ 2013-04-21 17:26 kuangbin 阅读(4796) 评论(0) 推荐(0) 编辑

2013年4月16日

HDU 2709 Sumsets(递推)

摘要: SumsetsTime Limit: 6000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1030Accepted Submission(s): 406Problem DescriptionFarmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an intege 阅读全文

posted @ 2013-04-16 23:41 kuangbin 阅读(488) 评论(0) 推荐(0) 编辑

2013年4月15日

HDU 1171 Big Event in HDU(背包)

摘要: Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16224Accepted Submission(s): 5725Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College h 阅读全文

posted @ 2013-04-15 20:06 kuangbin 阅读(1813) 评论(0) 推荐(0) 编辑

2013年4月12日

HDU 1074 Doing Homework (状态压缩DP)

摘要: Doing HomeworkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3595Accepted Submission(s): 1424Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of ha 阅读全文

posted @ 2013-04-12 16:56 kuangbin 阅读(1919) 评论(0) 推荐(2) 编辑

2013年4月11日

HDU 3642 Get The Treasury(线段树,求立方体交)

摘要: Get The TreasuryTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1408Accepted Submission(s): 440Problem DescriptionJack knows that there is a great underground treasury in a secret region. And he has a special device that can be used to detect trea 阅读全文

posted @ 2013-04-11 17:01 kuangbin 阅读(1244) 评论(1) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 94 下一页

导航

JAVASCRIPT: