Submission #316855

#TimeUsernameProblemLanguageResultExecution timeMemory
316855jungsnowFootball (info1cup20_football)C++14
26 / 100
32 ms1280 KiB
#include<bits/stdc++.h> using namespace std; using ll = long long; const int N = 100100; int n, k; void solve() { cin >> n >> k; ll s = 0; for (int x, i = 1; i <= n; ++i) { cin >> x; s += x; } cout << (s & 1); } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t; cin >> t; while (t--) solve(); }
#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...