Cod sursa(job #713130)

Utilizator FayedStratulat Alexandru Fayed Data 14 martie 2012 11:51:36
Problema Xerox Scor 0
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,n,dim,m,x,y,sum;

int main()
{
    f>>t;
 for(int i=1;i<=t;i++)
 {
     f>>n>>dim>>dim;

  for(int k=1;k<=n;k++)
   {

   f>>m;
sum^=m;
   for(int j=1;j<=m;j++)
     f>>x>>y;
     }
g<<sum>0<<'\n';
}

f.close();
g.close();
return 0;

}