Submission #237047

#TimeUsernameProblemLanguageResultExecution timeMemory
237047MrRobot_28COCI17_cezar (COCI17_cezar)C++17
50 / 50
5 ms384 KiB
#include<bits/stdc++.h> using namespace std; signed main() { int n; cin >> n; vector <int> a(n); int x = 0; vector <int> cnt(12); for(int i = 2; i <= 9; i++) { cnt[i] = 4; } cnt[10] = 12; cnt[11] = 4; for(int i = 0; i < n; i++) { cin >> a[i]; cnt[a[i]]--; x += a[i]; } x = 21 - x; int cnt1 = 0, cnt2 = 0; for(int i = 2; i <= 11; i++){ if(i <= x) { cnt1 += cnt[i]; } else { cnt2 += cnt[i]; } } if(cnt2 > cnt1) { cout << "DOSTA"; } else { cout << "VUCI"; } 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...