Task: | Final Array |
Sender: | Agonaudid |
Submission time: | 2019-05-25 12:37:27 +0300 |
Language: | Python3 |
Status: | READY |
Result: | TIME LIMIT EXCEEDED |
test | verdict | time | |
---|---|---|---|
#1 | TIME LIMIT EXCEEDED | -- | details |
#2 | TIME LIMIT EXCEEDED | -- | details |
#3 | RUNTIME ERROR | 0.04 s | details |
Code
while True: n, m = list(map(int, input().split())) array = [0] * n for _ in range(m): a, b, x = list(map(int, input().split())) l = 0 for i in range(a - 1, b): array[i] = max(array[i], x + l) l += 1 print(" ".join(list(map(str, array))))
Test details
Test 1
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 100000 29706 39977 913671103 20575 89990 878449866 1691 70785 229168045 81099 81323 611730238 ... |
correct output |
---|
227121122 450258482 450258483 ... |
user output |
---|
(empty) |
Test 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 100000 1 100000 1 1 100000 2 1 100000 3 1 100000 4 ... |
correct output |
---|
100000 100001 100002 100003 10... |
user output |
---|
(empty) |
Test 3
Verdict: RUNTIME ERROR
input |
---|
8 2 1 4 1 1 8 1 |
correct output |
---|
1 2 3 4 5 6 7 8 |
user output |
---|
1 2 3 4 5 6 7 8 |
Error:
Traceback (most recent call last): File "input/code.py", line 2, in <module> n, m =...