Cod sursa(job #734044)
| Utilizator | Data | 13 aprilie 2012 14:17:08 | |
|---|---|---|---|
| Problema | Fructe | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("fructe.in");
ofstream fout("fructe.out");
int main(){
int t,p,b;
fin>>t;
for(; t ; --t){
fin >> p >> b;
if(p%2==b%2)
fout << 1 << "\n";
else
fout << 0 << "\n";
}
return 0;
}
