Cod sursa(job #2902906)

Utilizator cezar.balutaCezar Baluta cezar.baluta Data 16 mai 2022 22:15:20
Problema Xerox Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.43 kb
#include <iostream>
#include <fstream>

using namespace std;

int main() {
    ifstream in("xerox.in");
    ofstream out("xeros.out");
    int n,m,x,rez = 0,t;
    in>>t;
    for(int i=0;t<n;i++) {
        in >> n;
        in>>x>>x;
        for (int j = 0; j < n; j++) {
            in >> m;
            rez ^= m;
            while (m--)
                in >> x;
        }
    }
    if(rez)
        out<<1;
    else out<<0;
    return 0;
}