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;
const int DIM = 20;
int val[DIM];
int main(void) {
#ifdef HOME
freopen("cezar.in", "r", stdin);
freopen("cezar.out", "w", stdout);
#endif
for (int i = 2; i <= 10; ++i)
val[i] = 4;
val[10] += 12;
val[11] += 4;
int n;
cin >> n;
int sum = 21;
while (n--) {
int x;
cin >> x;
sum -= x;
--val[x];
}
int nr1 = 0;
for (int i = sum + 1; i <= 11; ++i)
nr1 += val[i];
int nr2 = 0;
for (int i = 1; i <= sum; ++i)
nr2 += val[i];
cout << (nr1 >= nr2 ? "DOSTA" : "VUCI") << endl;
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... |