Submission #10
Details and source code
| ID | Time | User | Problem | Lang | Verdict |
|---|---|---|---|---|---|
| 10 | Mar 22, 2025, 06:42 AM | admin | RSQ Queries | py | RE 1 |
Source Code
pyn = int(input())
a = list(map(int, input().split()))
q = int(input())
for _ in range(q):
p, l, r = map(int, input().split())
if p == 1:
a[l - 1] = r
else:
print(sum(a[l-1:r-1])