Cod sursa(job #796517)
Utilizator | Data | 11 octombrie 2012 18:07:50 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream ifs("fructe.in");
ofstream ofs("fructe.out");
int main(){
int T;
ifs>>T;
long long int p,b;
for(int i=0;i<T;i++){
ifs>>p>>b;
ofs<<(b&1)<<endl;
}
}