Cod sursa(job #187704)

Utilizator jupanubv92Popescu Marius jupanubv92 Data 5 mai 2008 06:43:33
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<fstream>
using namespace std;
int main()
{long t,i,p,b;

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

fin>>t;

for(i=1;i<=t;i++)
    {fin>>p>>b;
      if(b%2==0) fout<<0<<endl;
	  else fout<<1<<endl;
      }

fin.close();
fout.close();
return 0;
}