Cod sursa(job #3342103)

Utilizator Lex._.Lex Guiman Lex._. Data 22 februarie 2026 19:52:38
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.55 kb
#include <bits/stdc++.h>
using namespace std;

ifstream in("xerox.in");
ofstream out("xerox.out");

int main()
{
    int t;
    in >> t;
    while(t--)
    {
        int n, dx, dy;
        in >> n >> dx >> dy;
        int xor_final=0;
        for(int i=1; i<=n; i++)
        {
            int m;
            in >> m;
            for(int j=1; j<=m; j++)
            {
                int x, y;
                in >> x >> y;
            }
            xor_final^=m;
        }
        out << (xor_final!=0) << "\n";
    }

    return 0;
}