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,x,f[15];
int main()
{
cin >> n;
for (i=2; i<=11; i++)
f[i] = 4;
f[10] = 16;
int s = 0;
for (i=1; i<=n; i++)
{
cin >> x;
s += x;
f[x]--;
}
int val = 21-s;
int nr1 = 0; int nr2 = 0;
for (i=val+1; i<=11; i++)
nr1 += f[i];
for (i=2; i<=val; i++)
nr2 += f[i];
if (nr1 >= nr2)
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... |