Pagini recente » Cod sursa (job #3282801) | Cod sursa (job #2579430) | Cod sursa (job #1920588) | Cod sursa (job #1944461) | Cod sursa (job #3286703)
#include <bits/stdc++.h>
using namespace std;
ifstream fin("hashuri.in");
ofstream fout("hashuri.out");
int n;
unordered_map<int,int> M;
int main()
{
ios_base::sync_with_stdio(0);
fin.tie(0);
fout.tie(0);
int task, x;
fin >> n;
while(n--)
{
fin >> task >> x;
if(task == 1)
M[x] = 1;
else if(task == 2)
M[x] = 0;
else
fout << M[x] << "\n";
}
return 0;
}