11)왕실의 나이트
N=input() x=int(N[1]) y=int(ord(N[0]))-int(ord('a'))+1 dx=[-2, -2, -1, -1, 1, 1, 2, 2] dy=[1, -1, 2, -2, 2, -2, 1, -1] cnt=0 for k in range(8): nx=x+dx[k] ny=y+dy[k] if 1
10)상하좌우
N=int(input()) a=list(map(str, input().split())) dx=[-1, 0, 1, 0] dy=[0, 1, 0, -1] move_type=['U','R', 'D', 'L'] x, y=1, 1 for i in a: for k in range(len(move_type)): if i==move_type[k]: nx=x+dx[k] ny=y+dy[k] if 1