Cod sursa(job #2745605)

Utilizator MateiAruxandeiMateiStefan MateiAruxandei Data 26 aprilie 2021 20:31:24
Problema Xerox Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 1.14 kb
#include <bits/stdc++.h>
#pragma GCC optimize("O3")

#define nozerous(x) (x & -x)
#define MOD 666013
#define M_PI           3.14159265358979323846
#define EPS 0.0001
using namespace std;

const int INF = (1 << 30), NMAX(100005);
using VI  = vector<int>;
using VVI = vector<VI>;
using VB  = vector<bool>;
using Point = array<int, 2>;
using ll = long long;

void BUNA(const string& task = "")
{
    if (!task.empty())
        freopen((task + ".in").c_str(), "r", stdin),
                freopen((task + ".out").c_str(), "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
}
void PA()
{
    exit(0);
};
int main()
{
    BUNA("xerox");
    int t;
    cin >> t;

    while(t--)
    {
        int n, dx, dy;
        cin >> n >> dx >> dy;

        int rez = 0;
        for(int i = 1; i <= n; ++i)
        {
            int m;
            cin >> m;

            for(int j = 1; j <= m; ++j)
            {
                int x, y;
                cin >> x >> y;

                ///valea
            }

            rez ^= m;
        }

        cout << (rez != 0) << '\n';
    }
    PA();
}