๊ตฌํ˜„

๐Ÿฅˆ 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...
Yuuuki
'๊ตฌํ˜„' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก