Submission #388712

#TimeUsernameProblemLanguageResultExecution timeMemory
388712AlmaFootball (info1cup20_football)C++14
0 / 100
33 ms404 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int t, n, a, k, total, x; cin >> t; while (t--) { cin >> n >> k; total = x = 0; while (n--) { cin >> a; x += a / 2; total += a; } if (total % 2 != 0) cout << 1; else cout << x % 2; } cout << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...