This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://judge.yosupo.jp/problem/range_chmin_chmax_add_range_sum
use proconio::{fastout, input};
use range_chmin_max_add_sum::RangeChminMaxAddSum;
#[fastout]
fn main() {
input! {
n: usize,
q: usize,
a: [i64; n],
}
let mut seg = RangeChminMaxAddSum::from(a);
for _ in 0..q {
input! {
t: u8,
l: usize,
r: usize,
}
match t {
0 => {
input! {
chmin: i64,
}
seg.range_chmin(l..r, chmin);
}
1 => {
input! {
chmax: i64,
}
seg.range_chmax(l..r, chmax);
}
2 => {
input! {
add: i64,
}
seg.range_add(l..r, add);
}
3 => {
let ans = seg.prod_sum(l..r);
println!("{}", ans);
}
_ => unreachable!(),
}
}
}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