Cod sursa(job #792341)
Utilizator | Data | 26 septembrie 2012 23:11:56 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <fstream>
using namespace std;
int T,N,M,Sol;
int main() {
int i,X,Y;
ifstream in("xerox.in");
ofstream out("xerox.out");
in>>T;
while(T--) {
in>>N>>X>>Y;
for(i=1,Sol=0;i<=N;i++) {
in>>M;
Sol^=M;
while(M--)
in>>X>>Y;
}
out<<(Sol!=0)<<'\n';
}
return 0;
}