Cod sursa(job #849916)
Utilizator | Data | 7 ianuarie 2013 20:18:11 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");
int T;
int main(){
f >> T;
for(; T; T--){
int x,y;
f >> x >> y;
if (y%2 == 0)
g<<0<<"\n";
else
g<<1<<"\n";
}
}