Submission #979076

#TimeUsernameProblemLanguageResultExecution timeMemory
979076MilosMilutinovicCOCI17_cezar (COCI17_cezar)C++14
50 / 50
1 ms604 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; const int A = 12; vector<int> cnt(A, 1); cnt[0] = 0; int s = 0; for (int i = 0; i < n; i++) { int x; cin >> x; cnt[x] -= 1; s += x; } int d = 21 - s; int L = 0, R = 0; for (int i = 1; i < A; i++) { if (i >= d) { R += cnt[i]; } else { L += cnt[i]; } } if (R >= L) { cout << "DOSTA" << '\n'; } else { cout << "VUCI" << '\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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...