Cod sursa(job #2300712)
Utilizator | Vlad Costin Andrei isav_costin | Data | 11 decembrie 2018 21:28:56 |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.52 kb |
#include <cstdio>
using namespace std;
int main()
{
freopen( "xerox.in", "r", stdin );
freopen( "xerox.out", "w", stdout );
int t;
scanf( "%d", &t );
while( t )
{
int n, dx, dy, m, sumxor=0;
scanf( "%d%d%d", &n, &dx, &dy );
for( int i=1;i<=n;i++ )
{
scanf( "%d", &m );
sumxor^=m;
for( int j=1;j<=m;j++ )
{
int x, y;
scanf( "%d%d", &x, &y );
}
}
printf( "%d\n", (sumxor>0) );
t--;
}
return 0;
}