Cod sursa(job #3306699)

Utilizator Alexia12345Maftei Alexia Alexia12345 Data 12 august 2025 19:56:51
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.58 kb
#include <fstream>
using namespace std;

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

int t,dx,dy,n;

int main()
{

    fin >> t;
    while (t--)
    {
        fin >>n >>dx>> dy;
        int r= 0;
        for (int i =1; i <=n; ++i)
        {
            int m;
            fin >> m;
            r ^= m;
            for (int j =1; j <=m; ++j)
            {
                int x, y;
                fin >> x >> y;
            }
        }
        if (r != 0)
            fout << 1 << "\n";
        else
            fout << 0 << "\n";
    }
    return 0;
}