# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339789 | ammar2000 | COCI17_cezar (COCI17_cezar) | C++17 | 1 ms | 372 KiB |
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>
#define int long long
using namespace std;
int n,in,fs,ss,cs,ty=11;
map <int ,int >mp;
main()
{
for (int i=1;i<=11;i++)
{
if (i==10)
mp[i]=16;
else mp[i]=4;
}
cin>>n;
while (n--)
{
cin>>in;
cs+=in;
mp[in]++;
}
int x=21-cs;
for (int i=1;i<=min(x,ty);i++)
fs+=mp[i];
for (int i=x+1;i<=11;i++)
ss+=mp[i];
if (fs<=ss)
cout <<"DOSTA";
else
cout <<"VUCI";
return 0;
}
Compilation message (stderr)
# | 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... |