(Python) 백준 1966 / 프린터 큐
·
Coding Test Practice/Python
로직llst에 가중치와 번호가 매겨진다, ex) [[1, 0], [2, 1], [3, 2], [4, 3]]llst 전체를 순회하며 0번 가중치보다 큰 가중치가 존재하면? --> 0번 문서를 가장 뒤로 보낸다0번 문서의 가중치가 가장 클경우 출력한다방금 출력한 문서가 목표한 문서면 횟수를 출력하고 아닐시 반복한다.import sysfrom collections import dequeinput = sys.stdin.readlinea = int(input())for i in range(a): llst = deque() num = 0 temp = [] b, c = map(int, input().split()) tmp = list(map(int, input().split())) for k in rang..