Pagini recente » Cod sursa (job #1506411) | Cod sursa (job #2596150) | Cod sursa (job #580524) | Diferente pentru problema/simulare intre reviziile 15 si 35 | Cod sursa (job #2195976)
#include <bits/stdc++.h>
using namespace std;
map <int,int> M;
int n;
int main(){
ifstream cin ("hashuri.in");
ofstream cout ("hashuri.out");
cin >> n;
while (n--){
int o, x;
cin >> o >> x;
if (o == 1 && M.find(x) == M.end()) M[x] = 1;
else if (o == 2) M.erase(x);
else cout << (M.find(x) != M.end()) << "\n";
}
return 0;
}