Cod sursa(job #1322814)

Utilizator radu_uniculeu sunt radu radu_unicul Data 20 ianuarie 2015 13:50:17
Problema Xerox Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
#include<fstream>
using namespace std;
ifstream f ("xerox.in");
ofstream g ("xerox.out"); 
int main() {int t;f >> t;while (t--) {{int n,x,y,s,m=0;f >> n >> x >> y;for (int i = 1; i <= n; i++) {f >> m; s ^= m;for (int j = 1; j <= m; j++) f >> x >> y;}g << (s > 0) << '\n';}}return 0;
}