This documentation is automatically generated by online-judge-tools/verification-helper
// verification-helper: PROBLEM https://yukicoder.me/problems/no/649
use avl::AVL;
use proconio::{fastout, input};
#[fastout]
fn main() {
input! {
q: usize,
k: usize,
}
let mut multiset = AVL::new(true);
for _ in 0..q {
input! {
t: u8,
}
if t == 1 {
input! {
v: u64,
}
multiset.insert(v);
} else {
if multiset.len() < k {
println!("-1");
} else {
let ans = multiset.erase_by_index(k - 1).unwrap();
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