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>
using namespace std;
int n, i, x, sum, nr1, nr2;
int ff[14];
int main(){
cin>> n;
for(i = 1; i <= n; i++){
cin>> x;
sum += x;
}
sum = 21 - sum;
for(i = 2; i <= 11; i++){
ff[i] = 4;
}
ff[10] += 12;
for(i = 2; i <= sum; i++){
nr1 += ff[i];
}
for(i = sum + 1; i <= 11; i++){
nr2 += ff[i];
}
if(nr1 > nr2){
cout<<"VUCI";
}
else{
cout<<"DOSTA";
}
}
# | 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... |