Cod sursa(job #2066377)
Utilizator | Data | 14 noiembrie 2017 22:34:57 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.5 kb |
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen( "xerox.in", "r", stdin );
freopen( "xerox.out","w", stdout);
int q, n, dx, dy, k, x, y;
cin >> q;
while (q--) {
int xornim = 0;
cin >> n >> dx >> dy;
for (int i = 1; i <= n; i++) {
cin >> k;
for (int j = 1; j <= k; j++)
cin >> x >> y;
xornim ^= k;
}
cout << (xornim != 0) << '\n';
}
return 0;
}