SPOJ Substring Problem(Rabin Karp TLE)

给出一个文本串及n个模式串,检查对应的模式串是否在文本串中出现

使用rabin karp算法超时

代码见:

https://github.com/wuli2496/OJ/blob/master/spoj/Substring%20Problem/Substring%20Problem.cpp

但是在spoj上评论上说有人用rabin karp算法通过。

猜你喜欢

转载自blog.csdn.net/wuli2496/article/details/120919912
tle