Submission #388681

#TimeUsernameProblemLanguageResultExecution timeMemory
388681AlmaFootball (info1cup20_football)C++14
0 / 100
33 ms352 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; for (int i = 0; i < n; i++) { cin >> a; total += a; } if (n == 1) { if (k == 1 || total % 4 == 0) cout << 0; else cout << 1; } else { cout << 1; } } 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...