This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://judge.yosupo.jp/problem/staticrmq
use algebra::{IdempotentMonoid, Monoid};
use proconio::{fastout, input};
use sparse_table::SparseTable;
#[derive(Debug)]
pub enum MinMonoid {}
impl Monoid for MinMonoid {
type Target = u32;
fn id_element() -> Self::Target {
u32::MAX
}
fn binary_operation(a: &Self::Target, b: &Self::Target) -> Self::Target {
*a.min(b)
}
}
impl IdempotentMonoid for MinMonoid {}
#[fastout]
fn main() {
input! {
n: usize,
q: usize,
a: [u32; n],
}
let st = SparseTable::<MinMonoid>::new(a);
for _ in 0..q {
input! { l: usize, r: usize }
println!("{}", st.prod(l..r));
}
}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