
KMP
几许情愁
这个作者很懒,什么都没留下…
展开
-
Blue Jeans 【KMP+暴力】
DescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was...原创 2018-08-09 18:15:52 · 583 阅读 · 1 评论 -
KMP 模板
#include<stdio.h>#include<string.h>#include<algorithm>#include<queue>#include<math.h>#include<map>#include<stack>#define inf 0x3f3f3f3f3f3fusing name原创 2018-08-17 18:03:01 · 111 阅读 · 0 评论 -
Theme Section 【KMP】
Problem Description 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...原创 2018-08-13 11:25:24 · 816 阅读 · 4 评论 -
Period
Problem Description 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 st...原创 2018-08-07 18:01:02 · 486 阅读 · 0 评论 -
Oulipo 【KMP求字串在主串中的个数 板子】
Problem Description 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 a...原创 2018-08-07 16:59:55 · 172 阅读 · 0 评论 -
Cyclic Nacklace 【KMP最小循环节应用】
Problem Description 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 distresse...原创 2018-08-07 16:52:00 · 165 阅读 · 0 评论 -
最大最小表示法模板
int get_minstring(char *s)//最小表示法{ int len = strlen(s); int i = 0, j = 1, k = 0; while(i<len && j<len && k<len) { int t=s[(i+k)%len]-s[(j+k)%len]; ...原创 2018-08-11 15:07:28 · 152 阅读 · 0 评论 -
String Problem 【kmp+最大最小表示法】
#include<stdio.h>#include<string.h>#include<algorithm>#include<math.h>#include<map>#include<queue>#include<vector>#include<stack>#defin原创 2018-08-11 13:58:09 · 428 阅读 · 0 评论 -
Substrings
Problem Description 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 ...原创 2018-08-10 16:53:46 · 877 阅读 · 0 评论 -
Count the string 【KMP+DP】
Problem Description 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 st...原创 2018-08-10 10:44:18 · 153 阅读 · 0 评论 -
FZU 1926 填空【KMP】
题目链接:http://acm.fzu.edu.cn/problem.php?pid=1926;与一般的KMP不同,这是一个单词一个单词比较#include<cstring>#include<cstdio>#include<string>#include<algorithm>#include<math.h>#inclu...原创 2019-04-03 15:53:00 · 148 阅读 · 0 评论