Cod sursa(job #1249443)

Utilizator ClaudiuHHiticas Claudiu ClaudiuH Data 26 octombrie 2014 23:25:57
Problema Fructe Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
//fructe
#include<iostream>
#include <fstream>
using namespace std;
int main()
{
	ifstream fin("fructe.in");
	ofstream fout("fructe.out");
	int a,b,n,i,s=0;
	fin>>n;
	for(i=1;i<=n;i++)
	{
		fin>>a>>b;
		s=a+b;
		if(s%2==0)
		fout<<'1'<<endl;
		else
		fout<<'0'<<endl;
	}
	
}