This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub rainbou-kpr/library
# verification-helper: PROBLEM https://judge.yosupo.jp/problem/point_set_range_composite import sys input = sys.stdin.buffer.readline from py.segtree import SegTree def main() -> None: MOD = 998244353 n, q = map(int, input().split()) v = [tuple(map(int, input().split())) for i in range(n)] def op(l, r): return (l[0]*r[0] % MOD, (r[0]*l[1]+r[1]) % MOD) seg = SegTree(v, op, (1, 0)) for _ in range(q): query = tuple(map(int, input().split())) if query[0] == 0: p, c, d = query[1:] seg.set(p, (c, d)) else: l, r, x = query[1:] f = seg.prod(l, r) print((f[0]*x + f[1]) % MOD) if __name__ == "__main__": main()
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/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.8.18/x64/lib/python3.8/site-packages/onlinejudge_verify/languages/python.py", line 93, in bundle raise NotImplementedError NotImplementedError