Cod sursa(job #1854566)
Utilizator | Data | 22 ianuarie 2017 21:00:28 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.53 kb |
#include <iostream>
#include <cstdio>
using namespace std;
int t, n, m, dx, dy, x, y;
int main()
{
freopen("xerox.in", "r", stdin);
freopen("xerox.out", "w", stdout);
scanf("%d", &t);
while (t--) {
int rez = 0;
scanf("%d %d %d", &n, &dx, &dy);
for (int fo = 1; fo <= n; fo++) {
scanf("%d", &m);
for (int i = 1; i <= m; i++)
scanf("%d %d", &x, &y);
rez ^= m;
}
printf("%d\n", !!rez);
}
return 0;
}