Pagini recente » Istoria paginii utilizator/anitsirc49000 | Diferente pentru runda/prelot2 intre reviziile 4 si 3 | Istoria paginii utilizator/stanculescu_g | Rating Ripan Vladimir (vladimilie) | Cod sursa (job #1040882)
#include <fstream>
#include <unordered_map>
using namespace std;
ifstream cin("hashuri.in");
ofstream cout("hashuri.out");
unordered_map<int, bool> h;
int t, x, n, i;
int main()
{
cin>>n;
for(i=1; i<=n; i++)
{
cin>>t>>x;
if(t==1) h[x]=1;
else
if(t==2) h.erase(x);
else cout<<h[x]<<'\n';
}
return 0;
}