This documentation is automatically generated by online-judge-tools/verification-helper
# verify-helper: PROBLEM https://judge.yosupo.jp/problem/unionfind
include nim/datast/unionfind
include nim/utils/base
input:
(N, Q): int
var
uf = initUF(N)
for _ in range(Q):
input:
(t, a, b): int
if t == 0:
uf.union(a, b)
else:
echo int(uf.isSame(a, b))
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/onlinejudge_verify/docs.py", line 349, in write_contents
bundled_code = language.bundle(self.file_class.file_path, basedir=pathlib.Path.cwd())
File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
raise NotImplementedError
NotImplementedError