Cod sursa(job #125028)

Utilizator silvia_the_bestSilvia Pripoae silvia_the_best Data 20 ianuarie 2008 11:01:50
Problema Fructe Scor 100
Compilator cpp Status done
Runda preONI 2008, Runda 3, Clasele 5-8 Marime 0.27 kb
#include <stdio.h>
int main(){
	int i,t;
	long long b,p;
	freopen("fructe.in","r",stdin);
	freopen("fructe.out","w",stdout);
	scanf("%d",&t);
	for (i=1;i<=t;++i){
		scanf("%d%d",&p,&b);
		if (b%2==1)
			printf("1\n");
		else 
			printf("0\n");
	}
	return 0;
}