This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int n,sum=0;
cin >> n;
vector<int> deck(12,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 << "DOSTA";
}else{
cout << "VUCI";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |