随笔分类 - KMP & 扩展KMP & Manacher
摘要:Problem Description:Can we divided a given string S into three nonempty palindromes?Input:First line contains a single integerT≤20which denotes the nu...
阅读全文
摘要:http://acm.hdu.edu.cn/contests/contest_show.php?cid=645Problem Description:Ladies and gentlemen, please sit up straight.Don't tilt your head. I'm seri...
阅读全文
摘要:题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=96545#problem/DDescription:A string is said to be a palindrome if it remains same when read...
阅读全文
摘要:Description:After an uphill battle, General Li won a great victory. Now the head of state decide to reward him with honor and treasures for his great ...
阅读全文
摘要:Description:给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度.回文就是正反读都是一样的字符串,如aba, abba等Input:输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S两组case之间由空行隔开...
阅读全文
摘要: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...
阅读全文
摘要:Description:Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages and she was preparing for sen...
阅读全文
摘要: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 ...
阅读全文
摘要:Problem Description:Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 const int N=1000010;int a[N], b[10010...
阅读全文