Cod sursa(job #2064797)

Utilizator aditoma2001Toma Adrian aditoma2001 Data 12 noiembrie 2017 20:23:43
Problema Xerox Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.47 kb
#include <bits/stdc++.h>

using namespace std;

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

int main()
{
    int t,n,m,dx,dy,x,y,sumxor=0;
    f>>t;
    for (int i=1;i<=t;++i)
    {
        f>>n>>dx>>dy;
        for (int j=1;j<=n;++j)
        {
            f>>m;
            for (int k=1;k<=m;++k)
            {
                f>>x>>y;
            }
            sumxor^=m;
        }
        if (!sumxor) g<<0;
        else g<<1;
    }
    return 0;
}