Pagini recente » Cod sursa (job #3290379) | Cod sursa (job #3280004) | Cod sursa (job #3284093) | Diferente pentru problema/progr intre reviziile 8 si 24 | Cod sursa (job #3230311)
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("hashuri.in");
ofstream fout ("hashuri.out");
const int MOD=666013;
unordered_map <int,bool> mp;
int main()
{
int n;
fin >> n;
for (int i=1; i<=n; i++)
{
int a,b;
fin >> a >> b;
if (a==1)
mp[b]=1;
else if (a==2)
mp[b]=0;
else
fout << mp[b] << '\n';
}
return 0;
}