Cod sursa(job #744159)
Utilizator | Data | 7 mai 2012 19:40:30 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.4 kb |
#include<iostream>
#include<fstream>
using namespace std;
ifstream in("xerox.in");
ofstream out("xerox.out");
int main()
{
int t, n, dx, dy, now, m, a, b, i, j;
for(in >> t; t; t--){
in >> n >> dx >> dy;
now = 0;
for(i = 1; i <= n; ++i){
in >> m;
now ^= m;
for(j = 1; j <= m; ++j)
in >> a >> b;
}
}
out << (now > 0);
return 0;
}