Cod sursa(job #2783710)
Utilizator | Data | 14 octombrie 2021 21:55:28 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.43 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("xerox.in");
ofstream fout("xerox.out");
int main()
{
int t, n;
fin >> t;
while(t--) {
int res = 0, x, y;
fin >> n >> x >> y;
for(int i = 1; i <= n; i++) {
fin >> x;
res ^= x;
for(int i = 1; i <= x; i++) fin >> y >> y;
}
fout << !!res << "\n";
}
return 0;
}