Pagini recente » Cod sursa (job #965971) | Cod sursa (job #1633347) | Cod sursa (job #2950464) | Monitorul de evaluare | Cod sursa (job #124835)
Cod sursa(job #124835)
| Utilizator |
Adrian Diaconu DITzoneC |
Data |
19 ianuarie 2008 23:45:05 |
| Problema |
Xerox |
Scor |
Ascuns |
| Compilator |
cpp |
Status |
done |
| Runda |
|
Marime |
0.4 kb |
#include <stdio.h>
#define nmax 50111
#define FOR(i,s,d) for(i=(s);i<(d);++i)
typedef long long lint;
int n,m,T,sol;
int main()
{
freopen("xerox.in","r",stdin);
freopen("xerox.out","w",stdout);
int i,j,ii;
scanf("%d",&T);
FOR(ii,0,T)
{
scanf("%d %*d %*d",&n);
sol=0;
FOR(i,0,n)
{
scanf("%d",&m);
sol^=m;
FOR(j,0,m)
scanf("%*d %*d");
}
printf("%d\n",sol!=0);
}
return 0;
}