Cod sursa(job #485642)

Utilizator Teodor94Teodor Plop Teodor94 Data 18 septembrie 2010 23:24:55
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
#include<cstdio>

void rez()
{
	int t,p,b;
	scanf("%d",&t);
	for (int i=1;i<=t;++i)
	{
		scanf("%d%d",&p,&b);
		if (b%2==0)
			printf("0\n");
		else
			printf("1\n");
	}
}

int main()
{
	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);
	rez();
	return 0;
}