Cod sursa(job #2291249)
Utilizator | Rosca Rares Raresr14 | Data | 27 noiembrie 2018 19:55:55 |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.45 kb |
#include <fstream>
using namespace std;
ifstream fin("xerox.in");
ofstream fout("xerox.out");
int t,n,sol,i,x,dx,dy,z,y,j;
int main(){
fin>>t;
for(;t--;){
fin>>n>>dx>>dy;
sol=0;
for(i=1;i<=n;i++){
fin>>x;
sol^=x;
for(j=1;j<=x;j++)
fin>>z>>y;
}
if(sol==0)
fout<<"0\n";
else
fout<<"1\n";
}
return 0;
}