Pagini recente » Cod sursa (job #2141741) | Diferente pentru problema/defrisare intre reviziile 4 si 3 | Cod sursa (job #2604020) | Cod sursa (job #2603737) | Cod sursa (job #2088308)
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("hashuri.in") ;
ofstream fout("hashuri.out") ;
bool t[20000000001] ;
int main()
{
int n , i , tp , x ;
fin >> n ;
for ( i = 1 ; i <= n ; i++ )
{
fin >> tp >> x ;
if ( tp == 1 )
t[x] = true ;
else if ( tp == 2 )
t[x] = false ;
else if ( tp == 3 )
fout << t[x] << '\n' ;
}
}