Rosetta Problems

Z Algorithm

https://judge.yosupo.jp/problem/zalgorithm