枚举字符串w可偏移后的字符串w',计算其前缀函数,看加密串s中包含w'的个数,如果为1,说明是满足要求的。
代码参考:
https://github.com/wuli2496/OJ/tree/master/UVa/12604%20Caesar%20Cipher
枚举字符串w可偏移后的字符串w',计算其前缀函数,看加密串s中包含w'的个数,如果为1,说明是满足要求的。
代码参考:
https://github.com/wuli2496/OJ/tree/master/UVa/12604%20Caesar%20Cipher