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 <bits/stdc++.h>
using namespace std;
int n, a[15], m, sum, x, b, c;
int main()
{
cin >> n;
for(int i = 2; i <= 11; ++i) a[i] = 4;
a[10] += 12;
while(n--) {
cin >> m;
a[m] -= 1;
sum += m;
}
x = 21 - sum;
for(int i = 2; i <= 11; ++i) {
if (i <= x) b += a[i];
else c += a[i];
}
if (b > c) 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... |