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, mana, dif, nr1, nr2;
int f[12];
int main(){
for (i=1; i<=11; i++){
f[i] = 4;
}
f[10] = 16;
cin >> n;
for (i=1; i<=n; i++){
cin >> x;
if (x == 12 || x == 13 || x == 14){
f[10]--;
}
else{
f[x]--;
}
mana += x;
}
dif = 21 - mana;
for (i=1; i<=11; i++){
if (dif <= i){
nr1 += f[i];
}
else{
nr2 += f[i];
}
}
if (nr1 >= nr2){
cout << "DOSTA";
}
else{
cout << "VUCI";
}
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... |