Cod sursa(job #1970113)

Utilizator PaulStighiStiegelbauer Paul-Alexandru PaulStighi Data 18 aprilie 2017 21:48:56
Problema Xerox Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.43 kb
#include<fstream>
using namespace std;
ifstream fin("xerox.in");
ofstream fout("xerox.out");

int T,N,M,Sol;

int main()
{
    int aux;

    fin>>T;

    while(T--)
    {
        fin>>N>>aux>>aux;

        for(int i = 1 ; i <= N ; ++i)
        {
            fin>>M; Sol ^= M;

            while(M--)  fin>>aux>>aux;
        }
    }

    fout<<(bool)Sol<<"\n";

    fin.close();
    fout.close();
    return 0;
}