![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
----kmp
文章平均质量分 80
_Occult_
物語が始まった
展开
-
POJ 1961 Period
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 string. That i原创 2015-04-24 21:58:07 · 384 阅读 · 0 评论 -
POJ 2406 Power Strings
Description 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, exponen原创 2015-04-24 21:53:57 · 322 阅读 · 0 评论 -
POJ 2752 Seek the Name, Seek the Fame
Description 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 seek the name, and at the原创 2015-04-24 21:53:42 · 411 阅读 · 0 评论 -
POJ 3461 Oulipo
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 avait Pair n原创 2015-04-24 21:52:43 · 330 阅读 · 0 评论 -
HDU 2087 剪花布条
Problem Description 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。花纹条和小饰条不会超过原创 2015-04-23 17:47:33 · 527 阅读 · 0 评论 -
HDU 1711 Number 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 number K which make a[K] =原创 2015-04-29 20:43:21 · 410 阅读 · 0 评论 -
HDU 3374 String Problem
Problem Description Give you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”, we can generate seven strings: String Rank SKYLONG原创 2015-04-29 20:48:30 · 431 阅读 · 0 评论 -
CodeForces 25E Test
Description Sometimes it is hard to prepare tests for programming problems. Now Bob is preparing tests to new problem about strings — input data to his problem is one string. Bob has 3 wrong soluti原创 2016-04-03 14:46:53 · 694 阅读 · 0 评论 -
HDU 5763 Another Meaning
Problem Description As is known to all, in many cases, a word has two meanings. Such as “hehe”, which not only means “hehe”, but also means “excuse me”. Today, ?? is chating with MeiZi online, Me原创 2016-07-30 12:45:05 · 412 阅读 · 0 评论