Cod sursa(job #3292569)
Utilizator | Data | 8 aprilie 2025 16:01:22 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.59 kb |
#include <fstream>
using namespace std;
ifstream in("xerox.in");
ofstream out("xerox.out");
int t, n, m, dx, dy;
int main()
{
in>>t;
while(t--)
{
in>>n>>dx>>dy;
int sum = 0;
int x, y;
for(int i = 1; i<=n; i++)
{
in>>m;
sum ^= m;
for(int j = 1; j<=m; j++)
{
in>>x>>y;
}
}
if(sum == 0)
{
out<<0<<'\n';
}
else
{
out<<1<<'\n';
}
}
return 0;
}