๐ฅ Silver3https://www.acmicpc.net/problem/8911 โ
์ ๋ตํ์ดimport sysinput = sys.stdin.readlinen = int(input()) dx = [0, 1, 0, -1]dy = [1, 0, -1, 0]for _ in range(n): commands = input().strip() direction = 0 # ์ด๊ธฐ๋ฐฉํฅ=๋ถ์ชฝ (0: ๋ถ, 1: ๋, 2: ๋จ, 3: ์) x, y = 0, 0 # ์ด๊ธฐ์์น min_x, min_y = 0, 0 max_x, max_y = 0, 0 for command in commands: if command == 'F': x += dx[di..
๊ตฌํ
๐ฅ Silver3 https://www.acmicpc.net/problem/1063 โ
์ ๋ต ํ์ดimport sysinput = sys.stdin.readlineking, stone, n = input().rstrip().split()# ์ด๋ ๋ฐฉํฅ (row,col)move = { 'R': (0, 1), 'L': (0, -1), 'B': (1, 0), 'T': (-1, 0), 'RT': (-1, 1), 'RB': (1, 1), 'LT': (-1, -1), 'LB': (1, -1)}cols = {'A': 0, 'B': 1, 'C': 2, 'D': 3, 'E': 4, 'F': 5, 'G': 6, 'H': 7} #{0:'A'}reversed_cols = {v: k for k, v in cols...