Strings in the Pocket(2019浙江省省赛)(马拉车-Manacher) Time limit:1000 ms Memory limit:65536 kB judge: ZOJ vjudge Description BaoBao has just found two strings s = s 1 s 2 … s n s = s_1s_2\dots s_n s=s1s
笔记整理自B站UPWLB工作生活两不误的个人空间-WLB工作生活两不误个人主页-哔哩哔哩视频教程Python 程序设计题23_哔哩哔哩_bilibili 程序设计题23 Python代码 n = int(input())for i in range(30):if str(n) == str(n)[::-1]: # 回文数print(i)breakelse:n = n