Pagini recente » Cod sursa (job #2649216) | Diferente pentru problema/arcas intre reviziile 42 si 45 | Atasamentele paginii Atena | Cod sursa (job #629278) | Cod sursa (job #2616141)
#include <bits/stdc++.h>
using namespace std;
int main() {
// ifstream cin("hashuri.in", ios::in);
// ofstream cout("hashuri.out", ios::out);
map<int, int> m;
int n;
cin >> n;
int tip, value;
while (n--) {
cin >> tip >> value;
if (tip == 1) m[value] = 1;
if (tip == 2) m.erase(value);
if (tip == 3) cout << (m.find(value) != m.end());
}
}