Cod sursa(job #3230310)
Utilizator | Data | 20 mai 2024 15:31:59 | |
---|---|---|---|
Problema | Hashuri | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.42 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("hashuri.in");
ofstream fout ("hashuri.out");
const int MOD=666013;
unordered_map <bool,int> 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;
}