Submission #139446

#TimeUsernameProblemLanguageResultExecution timeMemory
139446RaresRoscaCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms400 KiB
#include <iostream> using namespace std; int i,x,sum,n,f[20],X,sol1,sol2; int main(){ cin>>n; for(i=2;i<=11;i++) f[i]=4; f[10]*=4; for(i=1;i<=n;i++){ cin>>x; sum+=x; f[x]--; } X=21-sum; for(i=X+1;i<=11;i++) sol1+=f[i]; for(i=2;i<=X;i++) sol2+=f[i]; if(sol1>=sol2) cout<<"DOSTA"; else cout<<"VUCI"; 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...