Cod sursa(job #3359437)
| Utilizator | Data | 27 iunie 2026 21:18:39 | |
|---|---|---|---|
| Problema | Xerox | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.54 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("xerox.in");
ofstream fout("xerox.out");
int t;
int main() {
fin >> t;
for(; t; --t) {
int n, dx, dy;
fin >> n >> dx >> dy;
int xr = 0;
for(int i = 1; i <= n; i++) {
int m;
fin >> m;
xr ^= m;
for(int j = 1; j <= m; j++) {
int x, y;
fin >> x >> y;
}
}
fout << (xr != 0) << "\n";
}
return 0;
}