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 main()
{
map<long long,long long>mp;
for(int i=2;i<=14;i++)
{
if(i==14)
{
mp[12]+=4;
}
else if(i<14&&i>10)
{
mp[11]+=4;
}
else
{
mp[i]+=4;
}
}
long long n;
cin>>n;
long long a[n],c=0,f=0,s=0;
for(int i=0;i<n;i++)
{cin>>a[i];
s+=a[i];
mp[a[i]]--;
}
long long h=21-s;
// cout<<h<<endl;
for(auto i:mp)
{
// cout<<i.first<<" "<<i.second<<endl;
if(i.first>h)
{
c+=i.second;
}
else
{
f+=i.second;
}
}
if(c>=f)
{
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... |