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 <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v(12);
for (int i = 1; i < 12; ++i){
v[i] = 4;
if (i == 10) v[i] = 16;
}
int n; cin >> n;
int sm = 0;
for (int i = 0; i < n; ++i){
int x; cin >> x;
sm += x;
v[x]--;
}
sm = 21 - sm;
int a = 0, b = 0;
for (int i = 1; i < 12; ++i){
if (i <= sm) a += v[i];
else b += v[i];
}
if (a > b) cout << "VUCI\n";
else cout << "DOSTA\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... |