This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://judge.yosupo.jp/problem/unionfind
use proconio::{fastout, input};
use unionfind::UnionFind;
#[fastout]
fn main() {
input! {
n: usize,
q: usize,
}
let mut dsu = UnionFind::new(n);
for _ in 0..q {
input! {
t: usize,
u: usize,
v: usize,
}
if t == 0 {
dsu.merge(u, v);
} else {
println!("{}", if dsu.same(u, v) { 1 } else { 0 });
}
}
}Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.13.9/x64/lib/python3.13/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 "/opt/hostedtoolcache/Python/3.13.9/x64/lib/python3.13/site-packages/onlinejudge_verify/languages/rust.py", line 288, in bundle
raise NotImplementedError
NotImplementedError