This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://yukicoder.me/problems/no/1092
use dynamic_modint::{define_modcontainer, DynamicModInt};
use proconio::{fastout, input, marker::Chars};
#[fastout]
fn main() {
input! {
p: u32,
n: u32,
a: [u32; n],
s: Chars,
}
define_modcontainer!(MOD);
DynamicModInt::<MOD>::set_modulus(p);
let a = a
.into_iter()
.map(DynamicModInt::<MOD>::raw)
.collect::<Vec<_>>();
let ans = a
.iter()
.skip(1)
.zip(s.iter())
.fold(a[0], |acc, (x, &c)| match c {
'+' => acc + *x,
'-' => acc - *x,
'*' => acc * *x,
'/' => acc / *x,
_ => unreachable!(),
});
println!("{}", ans);
}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