Pagini recente » Cod sursa (job #1352429) | Cod sursa (job #2654467) | Cod sursa (job #2784541) | Cod sursa (job #948646) | Cod sursa (job #2290966)
#include <fstream>
using namespace std;
ifstream fin ("xerox.in");
ofstream fout ("xerox.out");
int i, n, sol, x, t, j, dx, dy, a, b;
int main(){
fin >> t;
for (j=1; j<=t; j++){
fin >> n >> dx >> dy;
sol = 0;
for (i=1; i<=n; i++){
fin >> x;
sol ^= x;
for (int k=1; k<=x; k++){
fin >> a >> b;
}
}
if (sol == 0)
fout << "0\n";
else
fout << "1\n";
}
return 0;
}