운체에서 배운 cpu 스케줄링 같다.우선순위가 주어진 큐!⭐C++에는 아래와 같이 우선순위 큐를 사용할 수 있다. 가장 큰 값이 top#include priority_queueint> pq; // 우선순위 큐//백준 1966 - 프린터 큐#include #include using namespace std;int main(){ int t; scanf("%d", &t); // 테스트 개수 입력 while(t--){ int cnt = 0; // 문서 개수 n, 몇 번째로 인쇄되었는지 궁금한 문제가 현재 큐에서 몇 번째에 놓여 있는지 m int n, m, p; // 우선순위 p scanf("%d %d", &n, &m); queue> q; priority_queue p..