Cod sursa(job #915858)
Utilizator | Data | 15 martie 2013 13:48:33 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include<cstdio>
using namespace std ;
int tst ;
int p, b ;
int main()
{
freopen("fructe.in", "r", stdin);
freopen("fructe.out", "w", stdout);
scanf("%d", &tst);
while( tst-- )
{
scanf("%d%d", &p, &b);
printf("%d\n", b % 2);
}
return 0 ;
}