verify/AI/rolling_hash_2d_test.nim

This documentation is automatically generated by online-judge-tools/verification-helper

:heavy_check_mark: verify/AI/rolling_hash_2d_test.nim

Depends on

Code

# verification-helper: PROBLEM https://onlinejudge.u-aizu.ac.jp/problems/ITP1_1_A
echo "Hello World"

import cplib/matrix/rolling_hash_2d

let hm = initHashMatrix(@[@[1, 2, 1], @[3, 4, 3]])
assert hm[0, 1] == 2
assert hm[1][2] == 3
let leftCol = hm[0..1, 0..0]
let rightCol = hm.get(0..1, 2..2)
let middleCol = hm[0..1, 1..1]
assert leftCol == rightCol
assert leftCol.gethash == rightCol.gethash
assert leftCol != middleCol
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
Back to top page