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 main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
const int A = 12;
vector<int> cnt(A, 1);
cnt[0] = 0;
int s = 0;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
cnt[x] -= 1;
s += x;
}
int d = 21 - s;
int L = 0, R = 0;
for (int i = 1; i < A; i++) {
if (i >= d) {
R += cnt[i];
} else {
L += cnt[i];
}
}
if (R >= L) {
cout << "DOSTA" << '\n';
} else {
cout << "VUCI" << '\n';
}
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... |