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 i,x,sum,n,f[20],X,sol1,sol2;
int main(){
cin>>n;
for(i=2;i<=11;i++)
f[i]=4;
f[10]*=4;
for(i=1;i<=n;i++){
cin>>x;
sum+=x;
f[x]--;
}
X=21-sum;
for(i=X+1;i<=11;i++)
sol1+=f[i];
for(i=2;i<=X;i++)
sol2+=f[i];
if(sol1>=sol2)
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... |