Cod sursa(job #2897886)

Utilizator andrei_C1Andrei Chertes andrei_C1 Data 5 mai 2022 10:56:02
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.42 kb
#include <bits/stdc++.h>

using namespace std;

ifstream fin("xerox.in");
ofstream fout("xerox.out");

int T;

void solve() {
	int N, DX, DY;
	fin >> N >> DX >> DY;

	int ans = 0;
	for(int i = 1; i <= N; i++) {
		int M, X, Y;
		fin >> M;

		for(int j = 1; j <= M; j++) {
			fin >> X >> Y;
		}

		ans ^= M;
	}

	fout << (ans != 0) << '\n';
}

signed main() {
	fin >> T;

	for(int tc = 1; tc <= T; tc++) {
		solve();
	}
	return 0;
}