Cod sursa(job #974202)

Utilizator thewildnathNathan Wildenberg thewildnath Data 16 iulie 2013 17:00:54
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.31 kb
#include<stdio.h>
int main()
{
    freopen("fructe.in","r",stdin);
    freopen("fructe.out","w",stdout);
    int a,b,t;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%d%d",&a,&b);
        if(b%2==0)
            printf("0\n");
        else
            printf("1\n");
    }
    return 0;
}