KMP题集
文章平均质量分 86
L-qf
这个作者很懒,什么都没留下…
展开
-
POJ-2406Power Strings
题目信息:DescriptionGiven 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, expo...原创 2018-08-06 17:05:51 · 117 阅读 · 0 评论 -
HDU-3746 Cyclic Nacklace
题目信息: 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 di...原创 2018-08-06 17:09:34 · 126 阅读 · 0 评论 -
HDU-2087 剪花布条
题目信息: Problem Description 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多...原创 2018-08-06 17:11:50 · 133 阅读 · 0 评论 -
HDU-1711Number Sequence
题目信息: Problem Description 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 n...原创 2018-08-06 17:13:50 · 148 阅读 · 0 评论 -
HUD-1686Oulipo
题目信息: 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: ...原创 2018-08-06 17:15:46 · 137 阅读 · 0 评论 -
HUD-1358Period
题目信息: 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 peri...原创 2018-08-06 17:17:25 · 131 阅读 · 0 评论 -
POJ-2752Seek the Name, Seek the Fame
题目信息:DescriptionThe 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 seek the name, and at t...原创 2018-08-06 17:19:33 · 87 阅读 · 0 评论 -
HDU-2549Simpsons’ Hidden Talents
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2594代码如下:#include<cstdio>#include<iostream>#define N 50005#include<cstring>using namespace std;char s[N],s1[N];int len,ne[N]...原创 2018-08-06 20:24:23 · 175 阅读 · 0 评论 -
HDU-3336Count the string
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3336代码如下:#include<iostream>#include<cstdio>#include<cstring>#define N 200005using namespace std;const int mod=10007;char s[N...原创 2018-08-06 21:04:50 · 108 阅读 · 0 评论