Submission #170933

#TimeUsernameProblemLanguageResultExecution timeMemory
170933MatesV13COCI17_cezar (COCI17_cezar)C++11
50 / 50
2 ms504 KiB
#include <bits/stdc++.h> using namespace std; int n, x, dj, num[30], ans; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; for (int i=2; i<12; i++) num[i]=4; num[10]=16; dj=21; for (int i=0; i<n; i++){cin >> x; num[x]--; dj-=x;} for (int i=dj+1; i<12; i++) ans+=num[i]; if (ans*2 < 52-n) 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...