Cod sursa(job #1978424)
Utilizator | Data | 7 mai 2017 18:12:54 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Elf e un sef | Marime | 0.25 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("fructe.in");
ofstream fout("fructe.out");
int T, P, B;
int main()
{
for(fin >> T; T; T--)
{
fin >> P >> B;
fout << B % 2 << "\n";
}
return 0;
}