Cod sursa(job #2605012)
Utilizator | Data | 24 aprilie 2020 11:20:14 | |
---|---|---|---|
Problema | Fructe | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("fructe.in");ofstream g("fructe.out");
int main()
{
int t, p , b;
f>>t;
while(t--)
f>>p>>b,g<<(b%2)<<'\n';
return 0;
}