Cod sursa(job #3171766)

Utilizator TheAndreiEnache Andrei Alexandru TheAndrei Data 19 noiembrie 2023 15:58:05
Problema Arbori de intervale Scor 0
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.59 kb
#include <iostream>
using namespace std;
const int nmax=2e5;
struct node {
    int time,val;
};
node hp[nmax+3];
int timeToHp[nmax+3];
void insertHeap(int x){
    timeToHp[++timeToHp[0]]=x;
}
void removeHeap(int x){

}
int getMinHeap(){

}
int main() {
    int n,cer,x;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>cer;
        if(cer==1){
            cin>>x;
            insertHeap(x);
        } else if(cer==2){
            cin>>x;
            removeHeap(x);
        } else if(cer==3) {
            cout<<getMinHeap()<<"\n";
        }
    }
    return 0;
}