์‹œ๋ฌผ๋ ˆ์ด์…˜

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