Cod sursa(job #954107)
| Utilizator | Data | 28 mai 2013 11:40:07 | |
|---|---|---|---|
| Problema | Fructe | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<fstream>
using namespace std;
ifstream in("fructe.in");
ofstream out("fructe.out");
int main(){
int t, p, b;
in>>t;
for(int i=1; i<=t; ++i)
{in>>p>>b;
out<<b%2<<'\n';
}
out.close();
return 0;
}