This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM https://onlinejudge.u-aizu.ac.jp/problems/ITP1_1_A
echo "Hello World"
import cplib/str/run_length_encode
assert run_length_encode(@[1, 1, 2, 2, 2, 1]) == @[(1, 2), (2, 3), (1, 1)]
assert run_length_encode([1, 1, 2, 2, 2, 1]) == @[(1, 2), (2, 3), (1, 1)]
assert run_length_encode("aaabbc") == @[('a', 3), ('b', 2), ('c', 1)]
assert run_length_encode(newSeq[int]()) == @[]
proc checkOpenArray(s: openArray[int]) =
assert run_length_encode(s) == @[(1, 2), (2, 1)]
checkOpenArray([1, 1, 2])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