
字符串_后缀数组
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
POJ3261--Milk Patterns
DescriptionFarmer 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 milk fro原创 2013-10-31 08:15:32 · 630 阅读 · 0 评论 -
HDU5008--Boring String Problem(SA+二分)
Problem DescriptionIn this problem, you are given a string s and q queries.For each query, you should answer that when all distinct substrings of string s were sorted lexicographically, which原创 2014-09-15 18:59:34 · 1574 阅读 · 0 评论 -
大视野1031--字符加密Cipher
Description喜欢钻研问题的JS 同学,最近又迷上了对加密方法的思考。一天,他突然想出了一种他认为是终极的加密办法:把需要加密的信息排成一圈,显然,它们有很多种不同的读法。例如下图,可以读作: JSOI07 SOI07J OI07JS I07JSO 07JSOI 7JSOI0 把它们按照字符串的大小排序: 07JSOI 7JSOI0 I07JSO JSOI07 OI07JS原创 2014-07-17 15:35:01 · 653 阅读 · 0 评论 -
POJ1743--Musical Theme
DescriptionA 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 re原创 2013-10-30 17:26:51 · 949 阅读 · 0 评论 -
POJ3415--Common Substrings(后缀数组+单调栈优化)
DescriptionA substring of a string T is defined as:T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|.Given two strings A, B and one integer K, we define S, a set of triples (i, j, k):S = {(i, j原创 2014-04-01 13:37:49 · 771 阅读 · 0 评论 -
POJ2774--Long Long Message
DescriptionThe little cat is majoring in physics in the capital of Byterland. A piece of sad news comes to him these days: his mother is getting ill. Being worried about spending so much on railway原创 2013-10-28 20:53:07 · 751 阅读 · 0 评论 -
LA4513 Stammering Aliens
Dr. Ellie Arroway has established contact with an extraterrestrial civilization. However, all efforts to decode their messages have failed so far because, as luck would have it, they have stumbled upo原创 2014-02-24 17:28:51 · 840 阅读 · 0 评论 -
UVA11107 Life Froms 后缀数组
You may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, eyebrows and the like. A few bear no human resemblan原创 2014-02-24 01:35:09 · 2136 阅读 · 3 评论 -
POJ3294--Life Forms
DescriptionYou may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, eyebrows and the like. A few bear no原创 2013-11-02 10:11:50 · 852 阅读 · 0 评论 -
POJ1226--Substrings
DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given原创 2013-11-01 11:03:24 · 614 阅读 · 0 评论 -
SETI--后缀数组
-Problem Description Amateur astronomers Tom and Bob try to find radio broadcasts of extraterrestrial civilizations in the air. Recently they received some strange signal and represented原创 2014-10-07 13:49:15 · 736 阅读 · 0 评论