Cod sursa(job #2171684)
| Utilizator | Data | 15 martie 2018 13:09:57 | |
|---|---|---|---|
| Problema | Xerox | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.6 kb |
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
freopen("xerox.in","r",stdin);
freopen("xerox.out","w",stdout);
int T;
scanf("%d\n", &T);
while(T--) {
int N, x, y;
scanf("%d %d %d\n", &N, &x, &y);
int ans = 0;
for(int i = 1; i <= N; ++i) {
int M;
scanf("%d", &M);
for(int j = 1; j <= M; ++j) {
scanf("%d %d", &x, &y);
}
ans ^= M;
}
if(ans) ans = 1;
cout << ans << '\n';
}
return 0;
}
