| Task: | Hypyt |
| Sender: | yoonseoj |
| Submission time: | 2025-11-02 21:56:25 +0200 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| #4 | RUNTIME ERROR | 0 |
| #5 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #2 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #3 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #4 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #5 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #6 | RUNTIME ERROR | 0.15 s | 2, 5 | details |
| #7 | RUNTIME ERROR | 0.12 s | 2, 5 | details |
| #8 | RUNTIME ERROR | 0.12 s | 2, 5 | details |
| #9 | RUNTIME ERROR | 0.08 s | 3, 4, 5 | details |
| #10 | RUNTIME ERROR | 0.08 s | 3, 4, 5 | details |
| #11 | RUNTIME ERROR | 0.07 s | 3, 4, 5 | details |
| #12 | RUNTIME ERROR | 0.10 s | 4, 5 | details |
| #13 | RUNTIME ERROR | 0.10 s | 4, 5 | details |
| #14 | RUNTIME ERROR | 0.09 s | 4, 5 | details |
| #15 | RUNTIME ERROR | 0.15 s | 5 | details |
| #16 | RUNTIME ERROR | 0.12 s | 5 | details |
| #17 | RUNTIME ERROR | 0.12 s | 5 | details |
| #18 | RUNTIME ERROR | 0.11 s | 5 | details |
| #19 | RUNTIME ERROR | 0.08 s | 5 | details |
| #20 | RUNTIME ERROR | 0.09 s | 5 | details |
| #21 | RUNTIME ERROR | 0.08 s | 5 | details |
| #22 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #23 | RUNTIME ERROR | 0.07 s | 1, 2, 3, 4, 5 | details |
| #24 | RUNTIME ERROR | 0.07 s | 5 | details |
| #25 | RUNTIME ERROR | 0.07 s | 5 | details |
| #26 | RUNTIME ERROR | 0.16 s | 5 | details |
| #27 | RUNTIME ERROR | 0.08 s | 5 | details |
Code
import copy
n, m, k = (int(x) for x in input().split())
lis = []
t =True
while t:
if n==1:
t= False
n=n-1
a = input()
lis.append(a)
row = {}
col = {}
n = len(lis)
for i in range(n):
for j in range(m):
if lis[i][j] == ".":
if i not in row:
row[i] = []
row[i].append(j)
if j not in col:
col[j] = []
col[j].append(i)
print(row, col)
yt = []
def s_p(s, d):
sx, sy = s
dx, dy = d
rows = copy.copy(row)
cols = copy.copy(col)
q = [(sx, sy, 0)]
v = {(sx, sy)}
f = 0
while f < len(q):
z, w, dist = q[f]
f += 1
if (z, w) == (dx, dy):
return dist
if z in rows:
for c1 in rows[z]:
if (z, c1) not in v:
v.add((z,c1))
q.append((z, c1,dist+ 1))
rows[z] = []
if w in cols:
for r4 in cols[w]:
if (r4, w) not in v:
v.add((r4, w))
q.append((r4,w, dist + 1))
cols[w] = []
return -1
pr= []
al =[]
for b in range(0,k):
n1, m2, k3, k4 = (int(x) for x in input().split())
h= (n1-1, m2-1)
g= (k3-1, k4-1)
t =s_p(h, g)
pr.append(t)
al.append(h, g, t)
for o in pr:
print(o)
Test details
Test 1 (public)
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 4 6 5 .*.*** *...** *****. *..*.* ... |
| correct output |
|---|
| 1 0 3 3 -1 |
| user output |
|---|
| {0: [0, 2], 1: [1, 2, 3], 2: [... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 2
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 10 10 10 .......... .....*.... ........*. *.*....*.. ... |
| correct output |
|---|
| 1 2 1 2 2 ... |
| user output |
|---|
| {0: [0, 1, 2, 3, 4, 5, 6, 7, 8... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 3
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 10 10 10 *...***.** *****.*... **..**.**. ..**.**.*. ... |
| correct output |
|---|
| 1 2 2 1 2 ... |
| user output |
|---|
| {0: [1, 2, 3, 7], 1: [5, 7, 8,... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 4
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 10 10 10 ***.*.**** ********** *.******** .*.***.**. ... |
| correct output |
|---|
| 3 4 2 3 4 ... |
| user output |
|---|
| {0: [3, 5], 2: [1], 3: [0, 2, ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 5
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 10 10 1 .****.**** **.**..*** ********** *******..* ... |
| correct output |
|---|
| 7 |
| user output |
|---|
| {0: [0, 5], 1: [2, 5, 6], 3: [... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 6
Group: 2, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 250 .*...*.....*******..**...*....... |
| correct output |
|---|
| 2 3 3 2 2 ... |
| user output |
|---|
| {0: [0, 2, 3, 4, 6, 7, 8, 9, 1... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 7
Group: 2, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 250 ...*......**.**.*.*..**..*..**... |
| correct output |
|---|
| 2 2 2 2 3 ... |
| user output |
|---|
| {0: [0, 1, 2, 4, 5, 6, 7, 8, 9... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 8
Group: 2, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 250 **..**..****.****.*.***.***..*... |
| correct output |
|---|
| 2 3 3 3 3 ... |
| user output |
|---|
| {0: [2, 3, 6, 7, 12, 17, 19, 2... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 9
Group: 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 40 40 200000 ...*.**.*..*.............*.*..... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {0: [0, 1, 2, 4, 7, 9, 10, 12,... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 10
Group: 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 40 40 200000 **.**..*.*.*.******....****.*.... |
| correct output |
|---|
| 2 1 3 2 2 ... |
| user output |
|---|
| {0: [2, 5, 6, 8, 10, 12, 19, 2... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 11
Group: 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 40 40 200000 .*.*.**.*****.***.*.****.**.**... |
| correct output |
|---|
| 3 3 3 3 3 ... |
| user output |
|---|
| {0: [0, 2, 4, 7, 13, 17, 19, 2... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 12
Group: 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 80 80 200000 *....**.***..****...*.....*...... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {0: [1, 2, 3, 4, 7, 11, 12, 17... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 13
Group: 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 80 80 200000 .***.*..*.***..*****....**...*... |
| correct output |
|---|
| 3 2 2 3 2 ... |
| user output |
|---|
| {0: [0, 4, 6, 7, 9, 13, 14, 20... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 14
Group: 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 80 80 200000 *******.*****.*..*..****...***... |
| correct output |
|---|
| 2 3 1 2 2 ... |
| user output |
|---|
| {0: [7, 13, 15, 16, 18, 19, 24... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 15
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 *....*..*..*..**..*.........**... |
| correct output |
|---|
| 3 2 2 2 2 ... |
| user output |
|---|
| {0: [1, 2, 3, 4, 6, 7, 9, 10, ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 16
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 ..*....*..*......*.**.*.*..***... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {0: [0, 1, 3, 4, 5, 6, 8, 9, 1... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 17
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 *..*.*****.*********.****.****... |
| correct output |
|---|
| 3 3 2 2 2 ... |
| user output |
|---|
| {0: [1, 2, 4, 10, 20, 25, 32, ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 18
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 *********.**********.******.**... |
| correct output |
|---|
| 3 3 3 3 3 ... |
| user output |
|---|
| {0: [9, 20, 27, 40, 47, 50, 10... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 19
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 .*****************************... |
| correct output |
|---|
| 104 422 145 93 65 ... |
| user output |
|---|
| {0: [0, 249], 1: [1, 248], 2: ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 20
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 ..****************************... |
| correct output |
|---|
| 57 155 38 65 98 ... |
| user output |
|---|
| {0: [0, 1, 248, 249], 1: [0, 1... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 21
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 .*****************************... |
| correct output |
|---|
| 498 498 498 498 498 ... |
| user output |
|---|
| {0: [0], 1: [0, 1], 2: [1, 2],... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 22
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 10 1 10 * * . * ... |
| correct output |
|---|
| 0 1 1 0 0 ... |
| user output |
|---|
| {2: [0], 5: [0], 9: [0]} {0: [... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 23
Group: 1, 2, 3, 4, 5
Verdict: RUNTIME ERROR
| input |
|---|
| 1 10 10 ........*. 1 7 1 10 1 4 1 7 1 5 1 1 ... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| {0: [0, 1, 2, 3, 4, 5, 6, 7, 9... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 24
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 1 200000 * . * . ... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| {1: [0], 3: [0], 4: [0], 7: [0... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 25
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 1 250 200000 *.*.*...*.*.**.***..**.*.*..**... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| {0: [1, 3, 5, 6, 7, 9, 11, 14,... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 26
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 ................................. |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {0: [0, 1, 2, 3, 4, 5, 6, 7, 8... |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were givenTest 27
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 250 250 200000 ******************************... |
| correct output |
|---|
| 0 0 0 0 0 ... |
| user output |
|---|
| {249: [249]} {249: [249]} |
Error:
Traceback (most recent call last):
File "input/code.py", line 67, in <module>
al.append(h, g, t)
TypeError: append() takes 2 positional arguments but 4 were given