Cod sursa(job #3339858)
| Utilizator | Data | 10 februarie 2026 16:16:27 | |
|---|---|---|---|
| Problema | Xerox | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.41 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("xerox.in");
ofstream g("xerox.out");
int main()
{
int T, n, m, ans,x,y;
f >> T;
while(T--)
{
ans = 0;
f >> n >>x>>y;
while(n--)
{
f >> m;
ans ^= m;
while(m--)f>>x>>y;
}
g << (ans != 0) << '\n';
}
return 0;
}
