Submission #161121

#TimeUsernameProblemLanguageResultExecution timeMemory
161121Exile_2k4COCI17_cezar (COCI17_cezar)C++17
45 / 50
5 ms396 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int n,sum=0; cin >> n; vector<int> deck(14,4); for(int i=0;i<n;i++){ int x; cin >> x; sum+=x; deck[x]--; } int diff = 21-sum; int smaller=0,greater=0; for(int i=1;i<=13;i++){ if(i<=diff){ smaller+=deck[i]; }else{ greater+=deck[i]; } } if(smaller>greater){ 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...