[python] 5648. 원자 소멸 시뮬레이션
문제 출처 5648. 원자 소멸 시뮬레이션 풀이 tc = int(input()) for _ in range(tc): n = int(input()) atoms = [] mt, mr, mb, ml = 0, 0, 0, 0 for i in range(n): x, y, d, e = map(int, input().split()) if x > mr: mr = x if x mt: mt = y if y < mb: mb = y atoms.append([x*2, y*2, d, e]) mt *= 2 mr *= 2 mb *= 2 ml *= 2 direction = {0: (0, 1), 1: (0, -1), 2: (-1, 0), 3: (1, 0)} answer = 0 while atoms: c..
2019. 9. 6.