[백준 / Python] 2206번 벽 부수고 이동하기
문제https://www.acmicpc.net/problem/2206 소스코드import sys from collections import dequeimport pprintn, m = map(int, input().split())mapdata = []for _ in range(n): mapdata.append(list(sys.stdin.readline().rstrip()))visit = [[[0] * 2 for _ in range(m)] for _ in range(n)]xp = [1, -1, 0, 0]yp = [0, 0, 1, -1]queue = deque()queue.append([0, 0, 0])answer = -1visit[0][0][0] = 1# print(len(mapdata), len..
2024. 8. 21.