목록주사위 (1)
황소개발자
백준 14499 파이썬 python : 주사위 굴리기 @@황소처럼 우직하게@@ 깔끔하게 풀기
import sys input = sys.stdin.readline mat = [] n, m, y, x, k = map(int, input().split()) for i in range(n): mat.append(list(map(int, input().split()))) orders = list(map(int, input().split())) class Dice: def __init__(self): self.west = 0 self.north = 0 self.east = 0 self.south = 0 self.up = 0 self.down = 0 def go_south(self): self.north, self.up, self.south, self.down = self.down, self.north, s..
백준 문제 풀이
2020. 2. 26. 04:27