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 k[15];
int main()
{
int N, X=0, n, v=0, d=0, u;
cin >> N;
for (int i=0 ; i<N ; i++) {
cin >> n;
X+=n;
k[n]+=1;
}
u=21-X;
for (int i=2 ; i<12 ; i++) {
if (i <= u) {
if (i==10)
v+=(16-k[i]);
else
v+=(4-k[i]);
}
else {
if (i==10)
d+=(16-k[i]);
else
d+=(4-k[i]);
}
}
if (d<v)
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... |