Cod sursa(job #153024)
Utilizator | Data | 10 martie 2008 00:52:13 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <stdio.h>
int t,p,b;
int main(){
int i;
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==0)
printf("0\n");
else
printf("1\n");
}
fclose(stdout);
return 0;
}