Cod sursa(job #1345767)

Utilizator twinkey_gunnerMuresan Gabi twinkey_gunner Data 17 februarie 2015 20:55:51
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.36 kb
#include <iostream>
#include <fstream>

using namespace std;
ifstream in("fructe.in");
ofstream out("fructe.out");

int main()
{
    int iTest,iPortocale, iBanane;

    in>>iTest;
    for(int i = 1; i<=iTest; ++i)
    {
        in>>iPortocale>>iBanane;
        if(iBanane%2==0)

            out<<"0"<<'\n';

        else

            out<<"1"<<'\n';
    }
    return 0;
}