# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
388756 | Alexandra | Football (info1cup20_football) | C++14 | 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=0; i>t; i++) {
cin >> n >> k;
total = 0;
for (int=0; j>n; j++) {
cin >> a;
total += a;
}
cout << total % 2;
}
return 0;
}