codeforces 101466E Text Editor(hash)

思路:先求出文本串、模式串所有前缀的散列值,及指数值。通过二分查找遍历最大的前缀。

具体代码参考:

https://github.com/wuli2496/OJ/tree/master/codeforces/101466E%20Text%20Editor

猜你喜欢

转载自blog.csdn.net/wuli2496/article/details/121050571
今日推荐