library-rs

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

View the Project on GitHub naoya675/library-rs

:heavy_check_mark: tree/rerooting/src/wrapper.rs

Depends on

Required by

Verified with

Code

use crate::Rerooting;

// reference: https://atcoder.jp/contests/abc222/editorial/2749
pub struct RerootingDiameter;

impl RerootingDiameter {
    pub fn new(
        n: usize,
    ) -> Rerooting<usize, usize, impl Fn(usize, usize) -> usize, impl Fn() -> usize, impl Fn() -> usize, impl Fn(usize, usize, usize, usize) -> usize> {
        Rerooting::new(
            n,
            |a: usize, b: usize| std::cmp::max(a, b),
            || 0,
            || 0,
            |a: usize, _: usize, _: usize, w: usize| a + w,
        )
    }
}
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
Back to top page