![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
判断回文串
自信 喵 QAQ
这个作者很懒,什么都没留下…
展开
-
判断字符串的最长回文串(manacher) hdu 3068
最长回文 给出一个只由小写英文字符a,b,c…y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等 Input 输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c…y,z组成的字符串S 两组case之间由空行隔开(该空行不用处理) 字符串长度len <= 110000 Output 每一行一个整数x,对应一组case,表示该组case的字符串中所包含的最长回文长度. Sample Input aaaa abab Sample Ou原创 2020-08-18 04:09:13 · 256 阅读 · 0 评论 -
VJ H - Genta Game
Kojima Genta is one of the best friends of Conan, and the fattest one! Everyone believes that Genta is just thinking about food. So, he wants to prove the opposite. So, his friends challenged him in a game. Genta’s friends will give him a string s of lengt原创 2020-06-16 01:52:05 · 322 阅读 · 0 评论