Cod sursa(job #1027970)
Utilizator | Data | 13 noiembrie 2013 12:31:57 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <cstring>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");
int main() {
int t;
f >> t;
for (int i = 1; i <= t; i++) {
int p, b;
f >> p >> b;
g << b % 2 << '\n';
}
return 0;
}