Cod sursa(job #3290121)
Utilizator | Data | 29 martie 2025 13:13:55 | |
---|---|---|---|
Problema | Hashuri | Scor | 70 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.35 kb |
#include <bits/stdc++.h>
using namespace std;
int N,x,t;
map<int,bool>w;
int main()
{
ifstream f("hashuri.in");
ofstream g("hashuri.out");
f >> N;
while(N--)
{
f >> t >> x;
if(t == 1)
w[x]=1;
else if(t == 2)
w[x]=0;
else
g << w[x] << '\n';
}
}