Cod sursa(job #323068)

Utilizator MKLOLDragos Ristache MKLOL Data 10 iunie 2009 17:20:33
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include<stdio.h>
int main()
{
freopen("fructe.in","r",stdin);
freopen("fructe.out","w",stdout);
int T,a,b;
scanf("%d",&T);
for(int i=1;i<=T;++i)
{
scanf("%d%d",&a,&b);
if(b%2==0)
printf("0\n");
else
printf("1\n");
}
return 0;
}