![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kmp
文章平均质量分 84
Hold_My_Own
When the dust settles, and it will, we'll see.
展开
-
(HDU - 1711)Number Sequence
(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]原创 2017-09-26 16:52:41 · 487 阅读 · 0 评论 -
(POJ - 2406)Power Strings
(POJ - 2406)Power Strings 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, exponent原创 2017-09-26 18:11:04 · 275 阅读 · 0 评论 -
(HDU - 1686)Oulipo
(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, mai原创 2017-09-26 23:11:13 · 269 阅读 · 0 评论 -
(HDU - 1358)Period
(HDU - 1358)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 e原创 2017-09-28 21:01:53 · 319 阅读 · 0 评论 -
(CodeForces - 126B)Password
(CodeForces - 126B)Password Asterix, Obelix and their temporary buddies Suffix and Prefix has finally found the Harmony temple. However, its doors were firmly locked and even Obelix had no luck opening them.A原创 2017-10-07 21:14:18 · 1377 阅读 · 0 评论 -
(CodeForces 432D)Prefixes and Suffixes
(CodeForces 432D)Prefixes and Suffixes You have a string s = s1s2...s|s|, where |s| is the length of string s, and si its i-th character. Let's introduce several definitions:• A substring s[i..j] (1 ≤ i ≤ j原创 2017-10-07 21:21:46 · 629 阅读 · 0 评论 -
(HihoCoder - 1015)From hihoCoder
(HihoCoder - 1015)From hihoCoder 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。这一天,他们遇到了一只河蟹,于是河蟹就向小Hi和小Ho提出了那个经典的问题:“小Hi和小Ho,你们能不能够判断一段文字(原串)里面是不是存在那么一些……特殊……的文字(模式串)?”小Hi和小Ho仔细思考了一下,觉得只原创 2017-09-29 16:54:48 · 294 阅读 · 0 评论 -
(HDU - 5763)Another Meaning
(HDU - 5763)Another Meaning 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, MeiZi se原创 2017-10-08 10:47:55 · 391 阅读 · 0 评论