Cod sursa(job #1736716)
Utilizator | Data | 2 august 2016 15:07:32 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("fructe.in");
ofstream fout("fructe.out");
int t, p ,b;
int main()
{
fin>>t;
while(t--){
fin>>p>>b;
if(b%2) fout<<1<<"\n";
else fout<<0<<"\n";
}
}