Pagini recente » Cod sursa (job #3142562) | Cod sursa (job #2284410) | Cod sursa (job #3185837) | Cod sursa (job #3121564) | Cod sursa (job #3285675)
#include <iostream>
#include <fstream>
using namespace std;
ifstream in("xerox.in");
ofstream out("xerox.out");
int main() {
int t;
in >> t;
while(t--) {
int n, dx, dy, ans = 0;
in >> n >> dx >> dy;
for(int i = 1;i <= n;i++) {
int m;
in >> m;
for(int i = 1;i <= m;i++) {
int cx, cy;
in >> cx >> cy;
}
ans ^= m;
}
if(ans == 0) {
out << "0\n";
}else {
out << "1\n";
}
}
return 0;
}