Cod sursa(job #2443365)

Utilizator r00t_Roman Remus r00t_ Data 27 iulie 2019 16:11:04
Problema Hashuri Scor 0
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.36 kb
#include <iostream>
#include <fstream>
#include <cmath>

using namespace std;

bool vf[2000000];

ifstream fin("hashuri.in");
ofstream fout("hashuri.out");

int main()
{
	int n, cmd, x;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> cmd >> x;
		if (cmd == 1)vf[x] = 1;
		if (cmd == 2) vf[x] = 0;
		if (cmd == 3) cout << vf[x] << '\n';
	}


}