Cod sursa(job #2676570)

Utilizator Iustin01Isciuc Iustin - Constantin Iustin01 Data 24 noiembrie 2020 16:51:56
Problema Hashuri Scor 70
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.4 kb
#include <bits/stdc++.h>
using namespace std;

ifstream in("hashuri.in");
ofstream out("hashuri.out");

unordered_map < int , bool > hashis;
int n, caz, x;

int main(){
    in>>n;
    while(n--){
        in>>caz>>x;
        if(caz == 1)
            hashis[x] = true;
        else
            if(caz == 2)
            hashis[x] = false;
        else
            out<<hashis[x]<<"\n";
    }
}