Cod sursa(job #3351912)

Utilizator eric_dragosDragos Eric eric_dragos Data 22 aprilie 2026 11:44:31
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.5 kb
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ifstream fin("xerox.in");
ofstream fout("xerox.out");
void test(){
    int n,dx,dy;
    fin >> n >> dx >> dy;
    int s = 0;
    for(int i =1; i<=n; i++){
        int m,x,y;
        fin >> m;
        for(int i = 1; i<=m; i++){
            fin >> x >> y;
        }
        s ^= m;
    }
    fout << (s == 0 ? "0\n" : "1\n");

}
int main(){
    int t;
    fin >> t;
    while(t--){
        test();
    }

    return 0;
}