Cod sursa(job #3122581)

Utilizator unomMirel Costel unom Data 19 aprilie 2023 17:52:56
Problema Fructe Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.34 kb
#include <fstream>

using namespace std;

ifstream in("fructe.in");
ofstream out("fructe.out");
int t, p, b;

int main()
{
    in>>t;

    while(t--)
    {
        in>>p>>b;

        if(b % 2 == 0)
        {
            out<<0<<'\n';
        }
        else
        {
            out<<1<<'\n';
        }
    }
    return 0;
}