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 all(s) s.begin(), s.end()
#define vi vector<int>
#define pb push_back
#define ii pair<int, int>
#define x first
#define y second
int cnt[20];
int main() {
ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
int n;
cin >> n;
for (int i = 2; i <= 10; i++) {
cnt[i] = 4;
}
cnt[10] = 16;
cnt[11] = 4;
int sum = 0;
for (int i = 1; i <= n; i++) {
int u; cin >> u;
sum += u;
cnt[u]--;
}
int x = 21 - sum;
int lower = 0;
int upper = 0;
for (int i = 2; i <= x; i++) {
lower += cnt[i];
}
for (int i = x + 1; i <= 11; i++) {
upper += cnt[i];
}
if (lower >= upper) 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... |