Cod sursa(job #124993)

Utilizator gabitzish1Gabriel Bitis gabitzish1 Data 20 ianuarie 2008 10:51:11
Problema Fructe Scor 100
Compilator cpp Status done
Runda preONI 2008, Runda 3, Clasele 5-8 Marime 0.24 kb
#include <stdio.h>

long long t, p, b, x;

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