Submission #223826

#TimeUsernameProblemLanguageResultExecution timeMemory
223826baoduytran0104COCI17_cezar (COCI17_cezar)C++14
50 / 50
6 ms512 KiB
#include <bits/stdc++.h> using namespace std; int n, a[15], m, sum, x, b, c; int main() { cin >> n; for(int i = 2; i <= 11; ++i) a[i] = 4; a[10] += 12; while(n--) { cin >> m; a[m] -= 1; sum += m; } x = 21 - sum; for(int i = 2; i <= 11; ++i) { if (i <= x) b += a[i]; else c += a[i]; } if (b > c) cout << "VUCI"; else cout << "DOSTA"; 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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...