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) 编辑

导航

JAVASCRIPT: