Cod sursa(job #2321572)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 16 ianuarie 2019 11:52:05
Problema Fructe Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.22 kb
#include <bits/stdc++.h>

using namespace std;

ifstream in("fructe.in");
ofstream out("fructe.out");

int main()
{
	int t;
	in >> t;
	
	for(int i = 1; i <= t; i++)
	{
		int x, y;
		in >> x >> y;
		
		out << y % 2 << '\n';
	}
}