Test 1
Verdict: ACCEPTED
Test 2
Verdict: ACCEPTED
Test 3
Verdict: ACCEPTED
| input |
|---|
10 8 9 10 2 7 1 10 10 1 4 |
Test 4
Verdict: ACCEPTED
| input |
|---|
100 1 8 8 5 7 10 9 4 8 10 6 3 8 7 ... |
Test 5
Verdict: ACCEPTED
| input |
|---|
1000 10 7 5 6 5 2 5 3 2 2 1 6 8 7 8... |
Test 6
Verdict: ACCEPTED
| input |
|---|
10000 9 1 8 2 6 5 1 3 3 10 6 3 9 3 1... |
Test 7
Verdict: ACCEPTED
| input |
|---|
100000 5 5 4 6 8 7 9 6 3 2 5 8 7 3 5 ... |
Test 8
Verdict: RUNTIME ERROR
| input |
|---|
1000000 5 8 5 7 9 1 9 10 3 6 1 8 3 9 7... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 25, in <module>
print(opt(n - 2))
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
[Previous line repeated 169486 more times]
File "/box/input/code.py", line 15, in opt
if i < 1:
RecursionError: maximum recursion depth exceededTest 9
Verdict: RUNTIME ERROR
| input |
|---|
1000000 4 5 3 5 4 3 6 7 10 6 3 9 7 9 1... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 25, in <module>
print(opt(n - 2))
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
[Previous line repeated 169486 more times]
File "/box/input/code.py", line 15, in opt
if i < 1:
RecursionError: maximum recursion depth exceededTest 10
Verdict: RUNTIME ERROR
| input |
|---|
1000000 10 3 6 7 7 10 4 4 5 2 9 4 6 10... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 25, in <module>
print(opt(n - 2))
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
[Previous line repeated 169486 more times]
File "/box/input/code.py", line 15, in opt
if i < 1:
RecursionError: maximum recursion depth exceededTest 11
Verdict: ACCEPTED
Test 12
Verdict: ACCEPTED
Test 13
Verdict: ACCEPTED
Test 14
Verdict: RUNTIME ERROR
| input |
|---|
1000000 1000 1000 1000 1000 1000 1000 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 25, in <module>
print(opt(n - 2))
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
[Previous line repeated 169486 more times]
File "/box/input/code.py", line 15, in opt
if i < 1:
RecursionError: maximum recursion depth exceededTest 15
Verdict: RUNTIME ERROR
| input |
|---|
1000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 25, in <module>
print(opt(n - 2))
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
File "/box/input/code.py", line 21, in opt
o[i] = max(opt(i - 1), opt(i - 3) + cards[i])
[Previous line repeated 169486 more times]
File "/box/input/code.py", line 15, in opt
if i < 1:
RecursionError: maximum recursion depth exceeded