[C++] 백준 1966 프린터 큐
·
Algorithm/Baekjoon
#include #include #include using namespace std; int main() { int n, m, k; vector result; cin >> n; for (int i = 0; i > m >> k; result.push_back(0); for (int j = 0; j > temp; nums.push({ temp, j }); pq.push(temp); } while (1) { int prior = nums.front().first;//중요도 int index = nums.front().second;//..