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;
signed main() {
int n;
cin >> n;
vector <int> a(n);
int x = 0;
vector <int> cnt(12);
for(int i = 2; i <= 9; i++)
{
cnt[i] = 4;
}
cnt[10] = 12;
cnt[11] = 4;
for(int i = 0; i < n; i++)
{
cin >> a[i];
cnt[a[i]]--;
x += a[i];
}
x = 21 - x;
int cnt1 = 0, cnt2 = 0;
for(int i = 2; i <= 11; i++){
if(i <= x)
{
cnt1 += cnt[i];
}
else
{
cnt2 += cnt[i];
}
}
if(cnt2 > cnt1)
{
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... |