verify/AI/xor_convolution_test.nim

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

:heavy_check_mark: verify/AI/xor_convolution_test.nim

Depends on

Code

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

import cplib/convolution/xor_convolution

var f = @[1, 2, 3, 4]
FastHadamardTransForm(f)
assert f == @[10, -2, -4, 0]
FastHadamardTransForm(f)
assert f == @[4, 8, 12, 16]

assert xorConvolution(@[1, 2], @[3, 4]) == @[11, 10]
assert xorConvolution(@[1, 0, 2, 1], @[0, 3, 1, 2]) == @[4, 8, 4, 8]
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