Cod sursa(job #2701341)
Utilizator | Data | 30 ianuarie 2021 15:38:58 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <bits/stdc++.h>
typedef long long ll;
std::ifstream fin("fructe.in");
std::ofstream fout("fructe.out");
int main() {
int t;
fin >> t;
while (t--) {
ll p, b;
fin >> p >> b;
fout << (b & 1) << '\n';
}
return 0;
}