Submission #141501

#TimeUsernameProblemLanguageResultExecution timeMemory
141501DiviaCOCI17_cezar (COCI17_cezar)C++14
50 / 50
2 ms380 KiB
#include <iostream> using namespace std; int n,i,x,c,f[12],mari,mici; int main(){ for(i=2;i<=11;i++) f[i]=4; f[10]=16; for(cin>>n;n--;){ cin>>c; x+=c; f[c]--; } x=21-x; for(i=2;i<=x;i++) mici+=f[i]; for(i=x+1;i<=11;i++) mari+=f[i]; if(mari<mici) 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...