Cod sursa(job #2632332)

Utilizator KillHorizon23Orban Robert KillHorizon23 Data 2 iulie 2020 20:28: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 fin("fructe.in");
ofstream fout("fructe.out");
int main()
{
	int t, p, b;
	fin >> t;
	while (t--){
		fin >> p >> b;
		fout << (b & 1) << "\n";}
}