
๐ฅ 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..