Submission #403198

#TimeUsernameProblemLanguageResultExecution timeMemory
403198penguinhackerCOCI17_cezar (COCI17_cezar)C++14
50 / 50
1 ms316 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array int cnt[12]={0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 16, 4}; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, s=0; cin >> n; for (int i=0; i<n; ++i) { int x; cin >> x; s+=x, --cnt[x]; } int big=0; for (int i=max(2, 21-s+1); i<=11; ++i) big+=cnt[i]; int small=52-n-big; cout << (small>big?"VUCI":"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...