Cod sursa(job #864520)
Utilizator | Data | 25 ianuarie 2013 08:47:23 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 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",y%2);
}
fclose(stdout);
fclose(stdin);
return 0;
}