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.yosupo.jp/problem/point_set_range_composite
package library;
import library.Solver;
import library.Mod;
import library.SegmentTree;
public class SegmentTree_composite_test extends Solver {
public static void main(final String[] args) { main(args, new SegmentTree_composite_test()); }
public void solve() {
long mask = (1 << 31) - 1;
Mod md = Mod998.md;
int n = ni();
int q = ni();
long f[] = new long[n];
for(int i = 0; i < n; i ++) f[i] = nl() << 31 | nl();
SegmentTree st = new SegmentTree(f,
1l << 31,
(ele1, ele2) -> md.mul(ele1 >> 31, ele2 >> 31) << 31 | md.mod((ele2 >> 31) * (ele1 & mask) + (ele2 & mask)));
for(int i = 0; i < q; i ++) {
if(ni() == 0) st.set(ni(), nl() << 31 | nl());
else {
long p = st.find(ni(), ni());
prtln(md.mod((p >> 31) * nl() + (p & mask)));
}
}
}
}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.