思路:先计算出前k个字符组成的子串的哈希值,再根据哈希值及递推关系 具体代码参考: https://github.com/wuli2496/OJ/blob/master/spoj/Ada%20and%20Spring%20Cleaning/Ada%20and%20Spring%20Cleaning(hash).java