Submission #138294

#TimeUsernameProblemLanguageResultExecution timeMemory
138294AldeaDanutCOCI17_cezar (COCI17_cezar)C++14
50 / 50
8 ms396 KiB
#include <iostream> using namespace std; int n,i,f[12],s,j,c1,c2; int main(){ cin>>n; for(i=2;i<=11;i++) f[i]=4; f[10]=16; for(i=1;i<=n;i++){ cin>>j; if(j>=10){ f[10]--; s+=10; }else{ if(j==1){ f[11]--; s+=11; }else{ f[j]--; s+=j; } } } for(i=2;i+s<=21&&i<=11;i++) c1+=f[i]; for(;i<=11;i++) c2+=f[i]; //acout<<c1<<" "<<c2<<" "; if(c1>=c2) cout<<"VUCI"; else cout<<"DOSTA"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...