[Baekjoon 2178 / python / 실버1] 미로 탐색 from collections import deque import sys N, M = map(int, sys.stdin.readline().split()) board = [] for _ in range(N): string = sys.stdin.readline().strip() board.append(list(map(int, string))) def isValidPos(x, y, N, M, visited): if 0 Algorithm/BFS 2024.03.30