This documentation is automatically generated by online-judge-tools/verification-helper
# verify-helper: PROBLEM https://judge.yosupo.jp/problem/point_add_range_sum
include nim/segt/segt
include nim/utils/base
input:
(N, Q): int
a: seq[int]
var
segt = initSegT(
a,
(x, y) => x + y,
0
)
for _ in range(Q):
input:
(t, a, b): int
if t == 0:
segt.update(a, segt.get(a) + b)
else:
echo segt.query(a, b)
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/onlinejudge_verify/docs.py", line 349, in write_contents
bundled_code = language.bundle(self.file_class.file_path, basedir=pathlib.Path.cwd())
File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
raise NotImplementedError
NotImplementedError