Cod sursa(job #2902909)
Utilizator | Data | 16 mai 2022 22:16:47 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.46 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream in("xerox.in");
ofstream out("xerox.out");
int n,m,x,rez = 0,t;
in>>t;
for(int i=0;t<n;i++) {
rez = 0;
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;
}