Cod sursa(job #1201675)
Utilizator | Data | 25 iunie 2014 19:39:55 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <fstream>
using namespace std;
ifstream cin("fructe.in");
ofstream cout("fructe.out");
long long P,B,t;
int main()
{
cin>>t;
while (t--){
cin>>P>>B;
if (B%2)cout<<"1 \n";
else cout<<"0 \n";
}
return 0;
}