Cod sursa(job #830605)

Utilizator Cristy94Buleandra Cristian Cristy94 Data 7 decembrie 2012 10:15:52
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<cstdio>

using namespace std;

int N;

int main(){

	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);

	scanf("%d",&N);

	while(N--){
		int a,b;
		scanf("%d%d",&a,&b);

		if(b%2 == 0)
			printf("0\n");
		else printf("1\n");
	}

return 0;
}