verification-helper

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

View the Project on GitHub online-judge-tools/verification-helper

:heavy_check_mark: examples/nim/union_find_tree_aoj_test.nim

Depends on

Code

# verification-helper: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/3/DSL/all/DSL_1_A

include "examples/nim/headers.nim"
import "examples/nim/union_find_tree.nim" except hoge
include "examples/nim/union_find_tree.nim"
include "examples/nim/union_find_tree.nim"
include "examples/nim/union_find_tree.nim"
include "examples/nim/union_find_tree.nim"

let
  n, q = nextInt()
var uft = initUnionFindTree(n)
for i in 0..<q:
  let com, x, y = nextInt()
  if com == 0:
    uft.unite_trees(x, y)
  elif com == 1:
    echo if uft.is_same(x, y): 1 else: 0
Traceback (most recent call last):
  File "/home/runner/.local/lib/python3.10/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.10/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page