Cod sursa(job #864508)
Utilizator | Data | 25 ianuarie 2013 08:22:40 | |
---|---|---|---|
Problema | Fructe | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <stdio.h>
const char IN[]="fructe.in",OUT[]="fructe.out";
int Tes,x,y;
int main()
{
freopen(IN,"r",stdin);
scanf("%d",&Tes);
freopen(OUT,"w",stdout);
while (Tes--)
{
scanf("%d%d",&x,&y);
printf("%d\n",(x+y+1)%2);
}
fclose(stdout);
fclose(stdin);
return 0;
}