This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_5_B
use proconio::input;
use rerooting::Rerooting;
fn main() {
std::thread::Builder::new()
.stack_size(64 * 1024 * 1024)
.spawn(actual_main)
.unwrap()
.join()
.unwrap();
}
fn actual_main() {
input! {
n: usize,
stw: [(usize, usize, usize); n - 1],
}
let merge = |a: usize, b: usize| std::cmp::max(a, b);
let e = || 0_usize;
let leaf = || 0_usize;
let apply = |a: usize, _: usize, _: usize, w: usize| -> usize { a + w };
let mut g = Rerooting::<usize, usize, _, _, _, _>::new(n, merge, e, leaf, apply);
for (s, t, w) in stw {
g.add_edge(s, t, w);
g.add_edge(t, s, w);
}
for res in g.run() {
println!("{}", res);
}
}
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/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.11.12/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/rust.py", line 288, in bundle
raise NotImplementedError
NotImplementedError