Cod sursa(job #319567)
Utilizator | Data | 1 iunie 2009 11:06:12 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
int main()
{int p,b,t;
freopen("fructe.in","r",stdin);
freopen("fructe.out","w",stdout);
scanf("%d",&t);
for (;t>0;t--)
{scanf("%d %d",&p,&b);
if ((b%2)==0) printf("0\n");
else printf("1\n");
}
return 0;}