KMP
文章平均质量分 84
俱往矣_wpt
这个作者很懒,什么都没留下…
展开
-
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 seek the name, and at the same time seek th原创 2017-08-10 15:19:15 · 453 阅读 · 0 评论 -
hdu 3746 Cyclic Nacklace
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 distressed and thinking about how to原创 2017-08-10 15:26:37 · 298 阅读 · 0 评论 -
hdu 1686 Oulipo
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 normal, mais tout原创 2017-08-10 16:05:32 · 215 阅读 · 0 评论 -
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 find out if I have a talent in politi原创 2017-08-10 15:04:12 · 377 阅读 · 0 评论 -
hdu 4763 Theme Section
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 more interesting and challe原创 2017-08-10 15:56:48 · 347 阅读 · 0 评论 -
hdu 1867 A + B for you again
Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asdf” and “sdfg”, the result of the addition between原创 2017-08-10 15:39:55 · 279 阅读 · 0 评论 -
poj 1961 Period
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 is, for each i (2原创 2017-08-10 15:33:30 · 290 阅读 · 0 评论 -
hdu 1711 Number Sequence
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] = b[1], a[K + 1] = b[2],原创 2017-08-10 16:01:17 · 349 阅读 · 0 评论 -
hdu 2203 亲和串
人随着岁数的增长是越大越聪明还是越大越笨,这是一个值得全世界科学家思考的问题,同样的问题Eddy也一直在思考,因为他在很小的时候就知道亲和串如何判断了,但是发现,现在长大了却不知道怎么去判断亲和串了,于是他只好又再一次来请教聪明且乐于助人的你来解决这个问题。 亲和串的定义是这样的:给定两个字符串s1和s2,如果能通过s1循环移位,使s2包含在s1中,那么我们就说s2 是s1的亲和串。原创 2017-08-10 14:56:00 · 348 阅读 · 0 评论