Cod sursa(job #1141818)
Utilizator | Data | 13 martie 2014 10:35:02 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream in("fructe.in");
ofstream out("fructe.out");
int main() {
size_t t;
in >> t;
while(t--) {
unsigned a,b;
in >> a >> b;
out << ((b%2==1)?1:0) << '\n';
}
}