Cod sursa(job #2785202)
Utilizator | Data | 18 octombrie 2021 10:13:24 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.4 kb |
#include <fstream>
using namespace std;
int main() {
ifstream cin("xerox.in");
ofstream cout("xerox.out");
int t;
cin >> t;
while (t--) {
int n, dx, dy;
cin >> n >> dx >> dy;
int x = 0;
while (n--) {
int k, a, b;
cin >> k;
x ^= k;
while (k--)
cin >> a >> b;
}
cout << (x ? "1\n" : "0\n");
}
cin.close();
cout.close();
return 0;
}