Cod sursa(job #125503)

Utilizator gabitzish1Gabriel Bitis gabitzish1 Data 20 ianuarie 2008 14:08:15
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <stdio.h>

long t, p, b, x;

int main()
{
	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);
	scanf("%ld", &t);
	while (t--)
	{
		scanf("%ld %ld",&p, &b);
		printf("%ld\n",b%2);
	}
	return 0;
}