FZU-1901 Period II
Period II(FZU-1901) 题面 For each prefix with length P of a given string S,if S[i]=S[i+P] for i in [0..SIZE(S)-p-1], then the prefix is a “period” of S. We want to all the periodic prefixs. 输入 Input contains multiple cases. The first line contains an integer T representing the number of cases. Then following T cases. Each test case contains a string S (1 <= SIZE(S) <= 1000000),represents the title.S consists of lowercase ,uppercase letter. ...