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 n, t, x, y, a[52];
int main(){
cin >> n;
for(int i = 0; i < n; i++){ cin >> a[i]; t += a[i]; }
t = 21-t;
if(t < 10){
x = (t-1)*4;
y = (14-t)*4;
} else {
x = 8+4*t;
y = 44-4*t;
}
for(int i = 0; i < n; i++){
if(a[i] <= t) x--;
else y--;
}
cout << (y >= x ? "DOSTA" : "VUCI");
}
# | 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... |