문제https://www.acmicpc.net/problem/6593 코드import sysfrom collections import dequeinput = sys.stdin.readlined = ((1,0,0),(-1,0,0),(0,1,0),(0,-1,0),(0,0,1),(0,0,-1))def Bfs(start_l, start_x, start_y): q = deque() q.append((start_l, start_x, start_y)) visited[start_l][start_x][start_y] = 1 while q: v, x, y = q.popleft() if v == end_l and x == end_x and y == end_y: ..