Cod sursa(job #2472446)
Utilizator | Data | 12 octombrie 2019 13:21:23 | |
---|---|---|---|
Problema | Hashuri | Scor | 70 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.32 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("hashuri.in");
ofstream g("hashuri.out");
int n,x,y;
map<int,bool>mp;
int main()
{
f>>n;
for(int i=1;i<=n;i++)
{
f>>x>>y;
if(x==1)mp[y]=1;
else if(x==2) mp[y]=0;
else g<<mp[y]<<"\n";
}
return 0;
}