Files
Algorithm/백준/1941.py
2026-04-11 11:48:34 +09:00

10 lines
152 B
Python

import sys
input = sys.stdin.readline
arr=[]
for i in range(5):
arr.append(list(map(str, input().strip())))
dx = [0, 1, 0, -1]
dy = [1, 0, -1, 0]