Cod sursa(job #2209289)
Utilizator | Data | 2 iunie 2018 16:50:32 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <fstream>
using namespace std;
int t, a, b;
int main()
{
ifstream fin("fructe.in");
ofstream fout("fructe.out");
fin >> t;
for (int i = 1;i <= t;++i)
{
fin >> a >> b;
fout << b % 2 << "\n";
}
fin.close();
fout.close();
return 0;
}