Cod sursa(job #2208816)

Utilizator Moise_AndreiMoise Andrei Moise_Andrei Data 31 mai 2018 18:53:44
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <iostream>
#include <fstream>
using namespace std;
ifstream in("fructe.in");
ofstream out("fructe.out");
int main()
{
    int n;
    in >> n;
    for(int i = 1; i <= n; i ++)
    {
        int a, b;
        in >> a >> b;
        out << b % 2 << '\n';
    }
    return 0;
}