Cod sursa(job #3250838)
Utilizator | Data | 23 octombrie 2024 20:23:00 | |
---|---|---|---|
Problema | Hashuri | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.29 kb |
#include <iostream>
#include <map>
using namespace std;
int t,c,x;
int main()
{
map<int,int>m;
cin>>t;
while (t)
{
t--;
cin>>c>>x;
if (c==1) m[x]=1;
if (c==2) m[x]=0;
if (c==3) cout<<m[x]<<'\n';
}
return 0;
}