Cod sursa(job #1743980)
Utilizator | Data | 19 august 2016 01:33:57 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <fstream>
using namespace std;
ifstream cin("fructe.in");
ofstream cout("fructe.out");
int main() {
int tests;
cin >> tests;
for (int test = 1; test <= tests; test++) {
int p, b;
cin >> p >> b;
cout << b % 2 << "\n";
}
return 0;
}