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>
#include<fstream>
#define fin cin
#define fout cout
#include<vector>
using namespace std;
//ifstream fin("date.in");
//ofstream fout("date.out");
int n,a,x,i,f[12],sol;
int main(){
fin>>n;x=21;
for(i=1;i<=n;i++)
{
fin>>a;
f[a]++;
x-=a;
}
for(i=2;i<=9;i++) if(i<=x) sol+=4-f[i]; else sol-=4-f[i];
if(x==10) sol+=16-f[10]; else sol-=16-f[10];
if(x==11) sol+=4-f[11]; else sol-=4-f[11];
if(sol>0) fout<<"VUCI";
else fout<<"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... |