Cod sursa(job #2014157)

Utilizator GoogalAbabei Daniel Googal Data 22 august 2017 23:51:36
Problema Xerox Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.44 kb
#include <iostream>
#include <fstream>

using namespace std;

ifstream in("xerox.in");
ofstream out("xerox.out");

int t, n, m, dx, dy;

int main()
{
  in >> t;
  for(int i = 1; i <= t; i++){
    in >> n >> dx >> dy;
    int sol = 0;
    for(int j = 1; j <= n; j++){
      int x, y;
      in >> m;
      sol ^= m;
      for(int k = 1; k <= m; k++)
        in >> x >> y;
    }
    out << (sol != 0) << '\n';
  }
  return 0;
}