Cod sursa(job #2558588)

Utilizator Alex_AeleneiAlex Aelenei Ioan Alex_Aelenei Data 26 februarie 2020 17:42:18
Problema Fructe Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.3 kb
#include <fstream>
#include <iostream>

using namespace std;

int main()
{
    ifstream in ( "fructe.in" ) ;
    ofstream out ( "fructe.out" ) ;

    int n , i , x , y ;

    in >> n ;

    for ( i = 1 ; i <= n ; ++ i )
    {
        in >> x >> y ;

        out << ( y & 1 ) << '\n' ;
    }
    return 0;
}