# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
79920 | AKaan37 | COCI17_cezar (COCI17_cezar) | C++14 | 3 ms | 672 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>
using namespace std;
#define FOR for(int i=1;i<=n;i++)
#define FOr for(int i=n;i>=1;i--)
#define pb push_back
#define mp make_pair
#define sf scanf
#define pf printf
#define lo long long
#define lim 999999999
#define LIM -999999999
#define li 100005
int n,m,cev,vis[30],cevap,ycevap;
string s;
int main(){
for(int i=1;i<=9;i++){
vis[i]=4;
}
scanf("%d",&n);
for(int i=1;i<=n;i++){
scanf("%d",&m);
cev+=m;
vis[m]--;
}
cev=21-cev;
if(cev>=11){
printf("VUCI");
return 0;
}
for(int i=1;i<=9;i++){
if(i<cev)
cevap+=vis[i];
else ycevap+=vis[i];
}
ycevap+=16;
//~ cout<<ycevap<<"\n"<<cevap;
if(ycevap>=cevap){
printf("DOSTA");
return 0;
}
printf("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... |