Cod sursa(job #3339647)
| Utilizator | Data | 9 februarie 2026 13:58:27 | |
|---|---|---|---|
| Problema | Xerox | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.42 kb |
#include <bits/stdc++.h>
using namespace std;
int main()
{
ifstream fin("xerox.in");
ofstream fout("xerox.out");
int t,n,m,x;
fin>>t;
while (t--) {
int nim=0;
fin>>n>>x>>x;
while (n--) {
fin>>m;
nim^=m;
while (m--) fin>>x>>x;
}
fout<<(nim!=0)<<'\n';
}
fin.close();
fout.close();
return 0;
}
