Cod sursa(job #604732)

Utilizator sergiupPopescu Sergiu sergiup Data 24 iulie 2011 19:51:07
Problema Fructe Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <stdio.h>

int main()
{
	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);
	
	int a,b,t;
	scanf("%d",&t);
	while ( t--)
	{
		scanf("%d%d",&a,&b);
		if ( (a + b) % 2 == 0)
			printf("1\n");
		else
			printf("0\n");
	}
	
	return 0;
}