[Programmers | Level 2] 프린터 (Python)
from collections import deque def solution(priorities, location): printer = deque() result = [] for i in range(len(priorities)): printer.append([priorities[i], i]) while printer: MAX = 0 for i in printer: MAX = max(i[0], MAX) prior, document = printer.popleft() if prior < MAX: printer.append([prior, document]) else: result.append([prior, document]) for i in range(len(result)): if location == res..