Cod sursa(job #2430238)

Utilizator PredescuSebastianIonPredescu Sebastian Ion PredescuSebastianIon Data 13 iunie 2019 13:53:02
Problema Fructe Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <fstream>

using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");
int t,b,p;
int main()
{
    f>>t;
    while(t--)
    {
        f>>p>>b;
        if(b%2==0)g<<0;
        else g<<1;
        g<<'\n';
    }
    return 0;
}