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 <iostream>
using namespace std;
int n,i,f[12],s,j,c1,c2;
int main(){
cin>>n;
for(i=2;i<=11;i++)
f[i]=4;
f[10]=16;
for(i=1;i<=n;i++){
cin>>j;
if(j>=10){
f[10]--;
s+=10;
}else{
if(j==1){
f[11]--;
s+=11;
}else{
f[j]--;
s+=j;
}
}
}
for(i=2;i+s<=21&&i<=11;i++)
c1+=f[i];
for(;i<=11;i++)
c2+=f[i];
//acout<<c1<<" "<<c2<<" ";
if(c1>=c2)
cout<<"VUCI";
else
cout<<"DOSTA";
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... |