Pagini recente » Cod sursa (job #405969) | Istoria paginii utilizator/panainterares | Monitorul de evaluare | Diferente pentru monthly-2012/runda-9/solutii intre reviziile 12 si 11 | Cod sursa (job #607560)
Cod sursa(job #607560)
#include<iostream.h>
#include<fstream.h>
#include<vector>
int a[200000000];
int main()
{ifstream f("hashuri.in");
ofstream h("hashuri.out");
long n,i;
int x,y;
f>>n;
for(i=1;i<=n;i++)
{f>>x>>y;
if(x==1)
a[y]=1;
else
if(x==2)
a[y]=0;
else
if(x==3)
h<<a[y]<<endl;}
return 0;}