[백준/14499/파이썬] 주사위 굴리기 - 구현
소스코드 # 입력받기 import sys input = sys.stdin.readline N,M,x,y,cmd = map(int,input().split()) board = [] for _ in range (N): board.append(list(map(int,input().split()))) direct = list(map(int,input().split())) # 1:동 2:서 3:북 4:남 dx = [0,0,0,-1,1] dy = [0,1,-1,0,0] # 상, 우, 앞 urf = [1,3,5] dice = [0] * 7 def new_urf(direction, urf): u,r,f = urf[0],urf[1],urf[2] if direction == 1: urf = [7-r,u,f] elif di..