This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM https://judge.yosupo.jp/problem/enumerate_palindromes
import strutils, sequtils
import cplib/str/manachar
var s = stdin.readLine
s = s.mapIt(it & "$").join("")[0..<(^1)]
var ans = manachar(s)
for i in 0..<ans.len:
if i mod 2 != 0: ans[i] = ans[i] div 2 * 2
else: ans[i] = (ans[i] + 1) div 2 * 2 - 1
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