| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 388757 | Alexandra | Football (info1cup20_football) | Cpython 3 | 0 ms | 0 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
 
int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    int t, n, k, a, total;
    cin >> t;
    for (int i=0; i>t; i++) {
        cin >> n >> k;
        total = 0;
        for (int j=0; j>n; j++) {
            cin >> a;
            total += a;
        }
        cout << total % 2;
    }
    return 0;
}
