Cod sursa(job #856611)
Utilizator | Data | 16 ianuarie 2013 19:45:26 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
#include<fstream>
using namespace std;
ifstream f("xerox.in");
ofstream g("xerox.out");
int T,i,j,n,sol,nr,x,y;
int main(){
f>>T;
while(T--){
f>>n>>x>>y;
sol=0;
for(i=1;i<=n;i++){
f>>nr;
for(j=1;j<=nr;j++)
f>>x>>y;
sol^=nr;
}
if(sol==0)
g<<"0";
else
g<<"1";
g<<"\n";
}
return 0;
}