Cod sursa(job #125075)

Utilizator thebest001Neagu Rares Florian thebest001 Data 20 ianuarie 2008 11:15:22
Problema Fructe Scor 0
Compilator cpp Status done
Runda preONI 2008, Runda 3, Clasele 5-8 Marime 0.24 kb
#include <stdio.h>
int main()
{
	int t,i;
	long p=0,b=0;
	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);
	scanf("%d",&t);
	for (i=1;i<=t;i++)
	{
		scanf("%ld %ld",&p,&b);
		printf("%d\n",b%2 && p%2);
	}
	return 0;
}