This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub shun0923/competitive-programming-java-library
// verification-helper: PROBLEM https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP2_7_D
package library;
import library.Solver;
import library.MultiSet;
public class TreeMultiSet_test extends Solver {
public static void main(final String[] args) { main(args, new TreeMultiSet_test()); }
public void solve() {
TreeMultiSet<Integer> ms = new TreeMultiSet<>();
int q = ni();
for(int query = 0; query < q; query ++) {
switch(ni()) {
case 0: ms.add(ni()); prtln(ms.count()); break;
case 1: prtln(ms.count(ni())); break;
case 2: int x = ni(); ms.update(x, - ms.count(x)); break;
case 3:
Integer l = ni() - 1;
int r = ni();
while(true) {
l = ms.higher(l);
if(l == null || l > r) break;
long cnt = ms.count(l);
for(int i = 0; i < cnt; i ++) prtln(l);
}
break;
}
}
}
}Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.2/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.2/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/user_defined.py", line 71, in bundle
return subprocess.check_output(shlex.split(command))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['false']' returned non-zero exit status 1.