Cod sursa(job #1364096)
| Utilizator | Data | 27 februarie 2015 14:09:43 | |
|---|---|---|---|
| Problema | Xerox | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.48 kb |
#include <stdio.h>
int t;
int main()
{
freopen ("xerox.in","r",stdin);
freopen ("xerox.out","w",stdout);
scanf("%d",&t);
for(int i=1;i<=t;i++)
{
int rezlt=0,n,alt,m;
scanf("%d%d%d",&n,&alt,&alt);
for(int j=1;j<=n;j++)
{
scanf("%d",&m);
rezlt=rezlt^m;
for(int k=1;k<=m;k++) scanf("%d%d",&alt,&alt);
}
if(rezlt==0) printf("0\n");
else printf("1\n");
}
}
