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 <fstream>
using namespace std;
ifstream fin("cezar.in");
ofstream fout("cezar.out");
int n,s,st,dr,v[60],c[20],i,dif;
int main() {
for (i=2;i<=9;i++)
c[i]=4;
c[10]=16;
c[11]=4;
fin>>n;
for (i=1;i<=n;i++) {
fin>>v[i];
s+=v[i];
}
dif=21-s;
for (i=1;i<=n;i++)
c[v[i]]--;
for (i=2;i<dif;i++)
st+=c[i];
for (i=dif;i<=11;i++)
dr+=c[i];
if (st>dr)
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... |