Submission #141625

#TimeUsernameProblemLanguageResultExecution timeMemory
141625RobertDobraCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms504 KiB
#include <iostream> using namespace std; int n,i,sum,v[13],x,y,z; int main(){ for (i=2;i<=11;i++) v[i]=4; v[10]=16; cin>>n; for (i=1;i<=n;i++){ cin>>x; v[x]--; sum+=x; } for (i=2;i<=11;i++) if (i<=21-sum) y+=v[i]; else z+=v[i]; if (y>z) 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...