答案是使用KMP算法,求出字符串的最小循环周期T,可参见https://blog.csdn.net/qq_17556191/article/details/95058356
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务