| Task: | Dynamic Range Minimum Queries |
| Sender: | aalto26dh_035 |
| Submission time: | 2026-09-19 13:38:40 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.06 s | details |
| #2 | TIME LIMIT EXCEEDED | -- | details |
Code
n,q=map(int,input().split())
x=list(map(int,input().split()))
for i in range(q):
c=list(map(int,input().split()))
if c[0]==1:
x[c[1]-1]=c[2]
if c[0]==2:
print(min(x[(c[1]):(c[2])]))
Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| 8 80 7 6 4 6 2 9 4 8 2 1 1 2 1 2 2 1 3 ... |
| correct output |
|---|
| 7 6 4 4 2 ... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 8, in <module>
print(min(x[(c[1]):(c[2])]))
ValueError: arg is an empty sequenceTest 2
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 200000 200000 398739055 65343131 699208332 3... |
| correct output |
|---|
| 28609 129890 20378 20378 311522 ... |
| user output |
|---|
| (empty) |
