https://www.acmicpc.net/problem/7562from collections import dequeimport sysinput = sys.stdin.readlinedx = [1,2,2,1,-1,-2,-2,-1]dy = [2,1,-1,-2,-2,-1,1,2]n = int(input())def bfs(x,y,moveX,moveY): que = deque() que.append([x,y]) #graph[x][y] = 1 while que: a, b = que.popleft() if a == moveX and b == moveY: return graph[a][b] for i in range(8): ..