문제 문제풀이 #include #include #include #include using namespace std; struct cmp { bool operator()(vector a, vector b) { return a.at(1) > b.at(1); } }; int solution(vector jobs) { int answer = 0; priority_queue pq; //우선순위 큐 min heap int size = jobs.size(); int time=0; //이차원배열 정렬하기 sort(jobs.begin(), jobs.end()); int idx = 0;int j=0; while(idx < size || !pq.empty()){ //현재 시간보다 이하에 들어온 작업들을 모두 넣는다. if(..