Cod sursa(job #2859740)
Utilizator | Cristian Alexutan DooMeD | Data | 1 martie 2022 20:34:34 |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.42 kb |
#include <bits/stdc++.h>
using namespace std;
int main() {
ifstream f("xerox.in");
ofstream g("xerox.out");
int t; f >> t;
for(int cas=1; cas<=t; cas++) {
int n, useless1, useless2; f >> n >> useless1 >> useless2;
int rez = 0;
for(int i=1; i<=n; i++) {
int m; f >> m;
rez ^= m;
for(int j=1; j<=m; j++) {
int useless3, useless4; f >> useless3 >> useless4;
}
}
g << rez << "\n";
}
return 0;
}