Cod sursa(job #2417164)
Utilizator | Data | 29 aprilie 2019 01:28:22 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.53 kb |
#include <bits/stdc++.h>
/// TONI BO$$ was here
/// #MLC
using namespace std;
int main()
{
int t,n,dx,dy,x,y,m,sum;
freopen("xerox.in","r",stdin);
freopen("xerox.out","w",stdout);
scanf("%d",&t);
while(t--)
{
scanf("%d%d%d",&n,&dx,&dy);
sum=0;
while(n--)
{
scanf("%d",&m);
sum^=m;
while(m--)
scanf("%d%d",&x,&y);
}
if(sum) printf("1\n");
else printf("0\n");
}
return 0;
}