Cod sursa(job #702501)

Utilizator Stefex09Stefan Teodorescu Stefex09 Data 1 martie 2012 22:16:01
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include<fstream>
using namespace std;
int main()
{
	ifstream in("fructe.in");
	ofstream out("fructe.out");
	int t,a,b;
	for(in>>t;t;--t){
		in>>a>>b;
		if(b%2==0)
			out<<"0\n";
		else 
			out<<"1\n";
	}
	return 0;
}