使用kmp算法求得字符串的周期,然后根据长度以及周期找到字符串输出位置 代码参考: OJ/UVa/11452 Dancing the Cheeky-Cheeky at master · wuli2496/OJ · GitHub