Mai intai trebuie sa te autentifici.

Cod sursa(job #1743989)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 19 august 2016 02:02:36
Problema Xerox Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.59 kb
#include <fstream>
#include <algorithm>
using namespace std;

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

int main() {
    int tests;
    cin >> tests;
    for (int test = 1; test <= tests; test++) {
        int n, dx, dy, sum = 0, m;
        cin >> n >> dx >> dy;
        for (int i = 1; i <= n; i++) {
            cin >> m;
            sum ^= m;
            int x, y;
            for (int j = 1; j <= m; j++)
                cin >> x >> y;
        }
        if (sum == 0)
            cout << "0\n";
        else
            cout << "1\n";
    }
    return 0;
}