Cod sursa(job #159054)

Utilizator alexeiIacob Radu alexei Data 13 martie 2008 22:31:57
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<stdio.h>
int main()
{
 freopen("fructe.in","r",stdin);
 freopen("fructe.out","w",stdout);
 
 int t,a,b;
 
 scanf("%d",&t);
 
 while( t-- )
 {   
  scanf("%d%d",&a,&b);
  if( b%2==0 )  
    printf("0\n");
  else
    printf("1\n");
    }
    
    return 0;
}