Cod sursa(job #2556841)
Utilizator | Alexandru Peticaru Pety | Data | 25 februarie 2020 11:04:21 |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.48 kb |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ifstream fin ("xerox.in");
ofstream fout ("xerox.out");
int t, n, m,x, y, k;
int main()
{
fin >> t;
while (t--) {
fin >> n >> x >> y;
int sum = 0;
for (int i = 1; i <= n; i++) {
fin >> k;
sum ^= k;
for (int j = 1; j <= k; j++)
fin >> x >> y;
}
if (sum != 0)
fout << 1;
else
fout << 0;
fout << "\n";
}
return 0;
}