Cod sursa(job #198394)
Utilizator | Data | 11 iulie 2008 08:55:14 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<fstream>
using namespace std;
int main(){
int p, b, t;
ifstream f("fructe.in");
ofstream g("fructe.out");
f>>t;
while(t--){
f>>p>>b;
g<<(b&1)<<'\n';
}
f.close();
g.close();
return 0;
}