Submission #388760

#TimeUsernameProblemLanguageResultExecution timeMemory
388760AlexandraFootball (info1cup20_football)C++14
26 / 100
32 ms380 KiB
#include <iostream> #include <string> #include <vector> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int t, n, k, total, odd, inp; cin >> t; for (int i=0; i<t; i++) { cin >> n >> k; total = odd = 0; for (int j=0; j<n; j++) { cin >> inp; if (inp % 2 == 1) { odd++; } total += inp; } if (total % 2 != 0) cout << 1; else cout << odd % 2; } 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...