
字符串处理-KMP
字符串处理
Stephencurry‘s csdn
这个作者很懒,什么都没留下…
展开
-
Cyclic Nacklace (HDU-3746)
Cyclic Nacklace (HDU-3746)CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan left. he is too distress...原创 2019-07-18 09:28:35 · 148 阅读 · 0 评论 -
Substrings (HDU-1238)
Substrings (HDU-1238)You 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 th...原创 2019-07-23 09:17:55 · 210 阅读 · 0 评论 -
Corporate Identity (HDU-2328)(KMP+暴力)
Beside other services, ACM helps companies to clearly state their “corporate identity”, which includes company logo but also other signs, like trademarks. One of such companies is Internet Building Ma...原创 2019-07-25 10:35:46 · 208 阅读 · 0 评论 -
Theme Section (HDU-4763)
Theme Section (HDU-4763)It's time for music! A lot of popular musicians are invited to join us in the music festival. Each of them will play one of their representative songs. To make the programs m...原创 2019-07-20 17:46:27 · 163 阅读 · 0 评论 -
剪花布条(HDU-2087)
剪花布条(HDU-2087)一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢?Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。花纹条和小饰条不会超过1000个字符长。如果遇见#字符,则不...原创 2019-07-17 17:51:09 · 277 阅读 · 0 评论 -
Power Strings (POJ-2406)
Power Strings (POJ-2406)Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication...原创 2019-07-17 17:38:00 · 175 阅读 · 0 评论 -
Oulipo (POJ-3461)
Oulipo (POJ-3461)The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote from the book:Tout avait Pair n...原创 2019-07-17 16:36:06 · 201 阅读 · 0 评论 -
Number Sequence (HDU-1711)
Number Sequence (HDU-1711)Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K ...原创 2019-07-17 16:33:29 · 169 阅读 · 0 评论 -
Simpsons’ Hidden Talents (HDU-2594)
Simpsons’ Hidden Talents (HDU-2594)Homer: Marge, I just figured out a way to discover some of the talents we weren’t aware we had.Marge: Yeah, what is it?Homer: Take me for example. I want to fi...原创 2019-07-23 17:03:29 · 243 阅读 · 0 评论 -
Seek the Name, Seek the Fame (POJ-2752)
Seek the Name, Seek the Fame (POJ-2752)The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies. They se...原创 2019-07-18 16:19:26 · 157 阅读 · 0 评论 -
Period (HDU-1358)
Period (HDU-1358)For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That...原创 2019-07-18 10:23:31 · 201 阅读 · 0 评论 -
Count the string (HDU-3336)
Count the string (HDU-3336)It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this s...原创 2019-07-23 15:09:09 · 116 阅读 · 0 评论