This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM https://judge.yosupo.jp/problem/zalgorithm
import sequtils, strutils
import cplib/str/rolling_hash
import cplib/utils/binary_search
var s = stdin.readLine
var rh = initRollingHash(s)
var ans = newSeqWith(s.len, 0)
for i in 0..<s.len:
proc isok(x: int): bool = x == 0 or rh.query(i..<i+x) == rh.query(0..<x)
ans[i] = meguru_bisect(0, s.len - i + 1, isok)
echo ans.join(" ")
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
raise NotImplementedError
NotImplementedError