BOJ 7662

    [백준 7662번][C++] 이중 우선순위 큐

    #include #include #include using namespace std; int main() { int test; cin >> test; while (test--) { //각각 최대힙과 최소힙 priority_queue min_heap; priority_queue max_heap; //삭제된 인덱스 저장 map del_idx; // 입력 데이터의 수 int input; cin >> input; for (int i = 0; i > c >> check_num; //삽입연산일 때 if (c == 'I') { //최대힙 최소힙 둘다 값저장 max_heap.push(check_num); min_h..