Submission #388687

#TimeUsernameProblemLanguageResultExecution timeMemory
388687AlmaFootball (info1cup20_football)C++14
26 / 100
33 ms380 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int t, n, a, k, total; cin >> t; while (t--) { cin >> n >> k; total = 0; while (n--) { cin >> a; total += a; } if (total % 2 != 0) cout << 1; else cout << 0; } 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...