library

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

View the Project on GitHub zer0-star/library

:heavy_check_mark: test/nim/unionfind_test.nim

Back to top page

Depends on

Code

# 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

Back to top page