| Task: | Ruudukko |
| Sender: | rasastusni |
| Submission time: | 2020-09-06 22:15:30 +0300 |
| Language: | Python3 (CPython3) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #2 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #3 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #4 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #5 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #6 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #7 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #8 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #9 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #10 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #11 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #12 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #13 | RUNTIME ERROR | 0.02 s | 3 | details |
| #14 | RUNTIME ERROR | 0.02 s | 3 | details |
| #15 | RUNTIME ERROR | 0.02 s | 3 | details |
| #16 | RUNTIME ERROR | 0.02 s | 3 | details |
| #17 | RUNTIME ERROR | 0.02 s | 3 | details |
| #18 | RUNTIME ERROR | 0.02 s | 3 | details |
Code
n = int(raw_input()) prev_choices = None for i in range(n): row_choices = [] for j,x in enumerate(raw_input()): choices = set() if i > 0: choices.update(prev_choices[j]) if j > 0: choices.update(row_choices[-1]) if i == 0 and j == 0: choices.add(0) if x == 'o': choices = set([ch + 1 for ch in list(choices)]) row_choices.append(choices) prev_choices = row_choices print(len(prev_choices[-1]))
Test details
Test 1
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 .......... .......... .......... .......... ... |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 2
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 o.o....... .......... .o...o.oo. ..o...o.oo ... |
| correct output |
|---|
| 9 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 3
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 o......o.. oo.oo..... oooo....oo o.......oo ... |
| correct output |
|---|
| 14 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 4
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 ..ooooo.oo .ooo.o..oo .....ooo.o ooo.ooo.oo ... |
| correct output |
|---|
| 12 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 5
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 oooooooooo ooo....ooo .oo.oo.ooo oooooooooo ... |
| correct output |
|---|
| 10 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 6
Group: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 oooooooooo oooooooooo oooooooooo oooooooooo ... |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 7
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 ................................. |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 8
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 .........o.....o.........o..o.... |
| correct output |
|---|
| 114 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 9
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 oo..oo.oo..o...o..o.o..o......... |
| correct output |
|---|
| 151 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 10
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 o..o.ooo..oo.o.o.o..o.o..o..oo... |
| correct output |
|---|
| 143 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 11
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 oo..oooooooooooo.oooo.o.o.oooo... |
| correct output |
|---|
| 115 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 12
Group: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100 oooooooooooooooooooooooooooooo... |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 13
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 ................................. |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 14
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 o..........o...o...o...o......... |
| correct output |
|---|
| 1121 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 15
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 .o.............o....o.o......o... |
| correct output |
|---|
| 1583 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 16
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 oooooo.oooooo.....oooo..o...o.... |
| correct output |
|---|
| 1574 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 17
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 ooooo.oo.oooooooooo...o...oo..... |
| correct output |
|---|
| 1147 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...Test 18
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 oooooooooooooooooooooooooooooo... |
| correct output |
|---|
| 1 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n = int...