Cod sursa(job #2387527)

Utilizator Alex_BubBuburuzan Alexandru Alex_Bub Data 24 martie 2019 20:12:29
Problema Xerox Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.41 kb
#include <fstream>

using namespace std;

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

int T, N, M, Sol, x, y;

int main()
{
    fin >> T;

    while(T--) {
        fin >> N >> x >> y; Sol = 0;

        while(N--) {
            fin >> M; Sol ^= M;

            while(M--) fin >> x >> y;
        }
        fout << Sol << '\n';
    }
    fin.close();
    fout.close();

    return 0;
}