摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1358学习重要的是: len 如果能整除 len-next[len],那么重复的次数就是 len/(len-next[len])不能整除就没有重复串。 PeriodTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2168Accepted Submission(s): 1071 Problem DescriptionFor each prefix of a g 阅读全文