Test 1
Verdict: ACCEPTED
Test 2
Verdict: ACCEPTED
| input |
|---|
4 41702 99720 72033 93257 |
Test 3
Verdict: ACCEPTED
| input |
|---|
5 41702 99720 72033 93257 11 |
Test 4
Verdict: ACCEPTED
| input |
|---|
6 41702 99720 72033 93257 11 128... |
Test 5
Verdict: ACCEPTED
| input |
|---|
7 41702 99720 72033 93257 11 128... |
Test 6
Verdict: ACCEPTED
| input |
|---|
10 41702 99720 72033 93257 11 128... |
Test 7
Verdict: ACCEPTED
Test 8
Verdict: ACCEPTED
| input |
|---|
4 43600 18508 2592 93155 |
Test 9
Verdict: ACCEPTED
| input |
|---|
5 43600 18508 2592 93155 54967 |
Test 10
Verdict: ACCEPTED
| input |
|---|
6 43600 18508 2592 93155 54967 9... |
Test 11
Verdict: ACCEPTED
| input |
|---|
7 43600 18508 2592 93155 54967 9... |
Test 12
Verdict: ACCEPTED
| input |
|---|
10 43600 18508 2592 93155 54967 9... |
Test 13
Verdict: ACCEPTED
Test 14
Verdict: ACCEPTED
| input |
|---|
4 55080 7072 70815 83996 |
Test 15
Verdict: ACCEPTED
| input |
|---|
5 55080 7072 70815 83996 29090 |
Test 16
Verdict: ACCEPTED
| input |
|---|
6 55080 7072 70815 83996 29090 1... |
Test 17
Verdict: ACCEPTED
| input |
|---|
7 55080 7072 70815 83996 29090 1... |
Test 18
Verdict: ACCEPTED
| input |
|---|
10 96704 90063 54724 17269 97269 ... |
Test 19
Verdict: ACCEPTED
Test 20
Verdict: ACCEPTED
| input |
|---|
4 96704 90063 54724 17269 |
Test 21
Verdict: ACCEPTED
| input |
|---|
5 96704 90063 54724 17269 97269 |
Test 22
Verdict: ACCEPTED
| input |
|---|
6 96704 90063 54724 17269 97269 ... |
Test 23
Verdict: ACCEPTED
| input |
|---|
7 96704 90063 54724 17269 97269 ... |
Test 24
Verdict: ACCEPTED
| input |
|---|
10 96704 90063 54724 17269 97269 ... |
Test 25
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 41702 99720 72033 93257 11 128... |
Test 26
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 43600 18508 2592 93155 54967 9... |
Test 27
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 55080 7072 70815 83996 29090 1... |
Test 28
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 96704 90063 54724 17269 97269 ... |
Test 29
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 41702 99720 72033 93257 11 128... |
Test 30
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 43600 18508 2592 93155 54967 9... |
Test 31
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 55080 7072 70815 83996 29090 1... |
Test 32
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 96704 90063 54724 17269 97269 ... |
Test 33
Verdict: RUNTIME ERROR
| input |
|---|
900 41702 99720 72033 93257 11 128... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 34
Verdict: RUNTIME ERROR
| input |
|---|
900 43600 18508 2592 93155 54967 9... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 35
Verdict: RUNTIME ERROR
| input |
|---|
900 55080 7072 70815 83996 29090 1... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 36
Verdict: RUNTIME ERROR
| input |
|---|
900 96704 90063 54724 17269 97269 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 37
Verdict: RUNTIME ERROR
| input |
|---|
10000 41702 99720 72033 93257 11 128... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 38
Verdict: ACCEPTED
Test 39
Verdict: ACCEPTED
Test 40
Verdict: ACCEPTED
Test 41
Verdict: ACCEPTED
Test 42
Verdict: ACCEPTED
Test 43
Verdict: ACCEPTED
| input |
|---|
10 5 10 8 10 1 2 4 10 2 3 |
Test 44
Verdict: ACCEPTED
Test 45
Verdict: ACCEPTED
Test 46
Verdict: ACCEPTED
Test 47
Verdict: ACCEPTED
Test 48
Verdict: ACCEPTED
Test 49
Verdict: ACCEPTED
| input |
|---|
10 5 2 1 10 6 10 5 5 5 4 |
Test 50
Verdict: ACCEPTED
Test 51
Verdict: ACCEPTED
Test 52
Verdict: ACCEPTED
Test 53
Verdict: ACCEPTED
Test 54
Verdict: ACCEPTED
Test 55
Verdict: ACCEPTED
| input |
|---|
10 5 10 8 10 1 2 4 10 2 3 |
Test 56
Verdict: ACCEPTED
Test 57
Verdict: ACCEPTED
Test 58
Verdict: ACCEPTED
Test 59
Verdict: ACCEPTED
Test 60
Verdict: ACCEPTED
Test 61
Verdict: ACCEPTED
| input |
|---|
10 5 2 1 10 6 10 5 5 5 4 |
Test 62
Verdict: ACCEPTED
Test 63
Verdict: ACCEPTED
Test 64
Verdict: ACCEPTED
Test 65
Verdict: ACCEPTED
Test 66
Verdict: ACCEPTED
Test 67
Verdict: ACCEPTED
| input |
|---|
10 10 10 6 2 10 9 8 7 7 6 |
Test 68
Verdict: ACCEPTED
Test 69
Verdict: ACCEPTED
Test 70
Verdict: ACCEPTED
Test 71
Verdict: ACCEPTED
Test 72
Verdict: ACCEPTED
Test 73
Verdict: ACCEPTED
| input |
|---|
10 10 10 6 2 10 9 8 7 7 6 |
Test 74
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 21 50 37 47 1 7 16 50 8 12 5 2... |
Test 75
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 22 10 2 47 28 48 22 25 22 17 1... |
Test 76
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 28 4 36 42 15 7 26 29 45 22 45... |
Test 77
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 49 46 28 9 49 43 36 31 35 30 1... |
Test 78
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 105 250 181 234 1 33 76 250 37... |
Test 79
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 109 47 7 233 138 237 109 122 1... |
Test 80
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 138 18 178 210 73 31 128 143 2... |
Test 81
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 242 226 137 44 244 214 179 153... |
Test 82
Verdict: RUNTIME ERROR
| input |
|---|
900 376 898 649 840 1 116 273 900 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 83
Verdict: RUNTIME ERROR
| input |
|---|
900 393 167 24 839 495 853 392 437... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 84
Verdict: RUNTIME ERROR
| input |
|---|
900 496 64 638 756 262 110 460 513... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 85
Verdict: RUNTIME ERROR
| input |
|---|
900 871 811 493 156 876 771 644 54... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 86
Verdict: RUNTIME ERROR
| input |
|---|
10000 4171 9972 7204 9326 2 1282 302... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 87
Verdict: RUNTIME ERROR
| input |
|---|
100000 41703 99721 72034 93258 12 128... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 88
Verdict: RUNTIME ERROR
| input |
|---|
100000 43601 18509 2593 93156 54968 9... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 89
Verdict: RUNTIME ERROR
| input |
|---|
100000 55081 7073 70816 83997 29091 1... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 90
Verdict: ACCEPTED
| input |
|---|
4 100000 100000 100000 100000 |
Test 91
Verdict: ACCEPTED
| input |
|---|
5 100000 100000 100000 100000 10... |
Test 92
Verdict: ACCEPTED
| input |
|---|
6 100000 100000 100000 100000 10... |
Test 93
Verdict: ACCEPTED
| input |
|---|
7 100000 100000 100000 100000 10... |
Test 94
Verdict: ACCEPTED
| input |
|---|
10 100000 100000 100000 100000 10... |
Test 95
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
50 100000 100000 100000 100000 10... |
Test 96
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
250 100000 100000 100000 100000 10... |
Test 97
Verdict: RUNTIME ERROR
| input |
|---|
900 100000 100000 100000 100000 10... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 98
Verdict: RUNTIME ERROR
| input |
|---|
10000 100000 100000 100000 100000 10... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 99
Verdict: RUNTIME ERROR
| input |
|---|
100000 100000 100000 100000 100000 10... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 24, in <module>
main()
File "/box/input/code.py", line 21, in main
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 21, in <genexpr>
ans = max(values[start][0] + get_max(1, start, start) for start in range(3))
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in get_max
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", line 18, in <listcomp>
choices = [values[c][idx] + get_max(idx + 1, c, start_color) for c in range(3) if c != prev_color]
File "/box/input/code.py", li...Test 100
Verdict: ACCEPTED
| input |
|---|
3 100000 100000 100000 |