Cod sursa(job #3290118)
Utilizator | Data | 29 martie 2025 13:12:27 | |
---|---|---|---|
Problema | Hashuri | Scor | 70 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.38 kb |
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("hashuri.in");
ofstream fout ("hashuri.out");
int N,tip,x;
map <int,bool>M;
int main()
{
fin>>N;
while(N--)
{
fin>>tip>>x;
if(tip==1)
M[x]=1;
if(tip==2)
M[x]=0;
if(tip==3)
fout<<M[x]<<'\n';
}
return 0;
}