Cod sursa(job #1199583)
Utilizator | Data | 19 iunie 2014 17:50:10 | |
---|---|---|---|
Problema | Fructe | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<cstdio>
using namespace std;
int T,P,B;
int main()
{
//freopen("fructe.in","r",stdin);
//freopen("fructe.out","w",stdout);
scanf("%d",&T);
while(T--)
{
scanf("%d%d",&P,&B);
if(B%2)
printf("1\n");
else
printf("0\n");
}
return 0;
}