Cod sursa(job #2642838)

Utilizator PredescuSebastianIonPredescu Sebastian Ion PredescuSebastianIon Data 17 august 2020 13:24:17
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.45 kb
#include <bits/stdc++.h>

using namespace std;
ifstream f("xerox.in");
ofstream g("xerox.out");
int nr_teste,n,x,y,nr;
int main()
{
    f>>nr_teste;
    while(nr_teste--)
    {
        f>>n>>x>>y;
        int sum=0;
        for(int i=1;i<=n;i++)
        {
            f>>nr;
            sum^=nr;
            while(nr--)
            {
                f>>x>>y;
            }
        }
        g<<(sum!=0)<<"\n";
    }
    return 0;
}