Cod sursa(job #3291660)

Utilizator Ics.maker09Iancu Cezar-Stefan Ics.maker09 Data 5 aprilie 2025 11:27:14
Problema Hashuri Scor 100
Compilator cpp-64 Status done
Runda cex_9 Marime 0.31 kb
#include <bits/stdc++.h>
using namespace std;
ifstream f("hashuri.in");
ofstream g("hashuri.out");
unordered_map<int,int>mp;
int n,x,y,i;
int main()
{
    f>>n;
    for(i=1;i<=n;i++)
    {
        f>>x>>y;
        if(x==1)mp[y]=1;
        else if(x==2)mp[y]=0;
        else g<<mp[y]<<'\n';
    }
}