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;
#define ll long long
#define ar array
int cnt[12]={0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 16, 4};
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, s=0;
cin >> n;
for (int i=0; i<n; ++i) {
int x;
cin >> x;
s+=x, --cnt[x];
}
int big=0;
for (int i=max(2, 21-s+1); i<=11; ++i)
big+=cnt[i];
int small=52-n-big;
cout << (small>big?"VUCI":"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... |