Submission #139210

#TimeUsernameProblemLanguageResultExecution timeMemory
139210AlexPascu007COCI17_cezar (COCI17_cezar)C++98
30 / 50
2 ms424 KiB
#include <iostream> using namespace std; int n,s,st,dr,v[60],c[20],i,dif; int main() { for (i=2;i<=9;i++) c[i]=4; c[10]=16; c[11]=4; cin>>n; for (i=1;i<=n;i++) { cin>>v[i]; s+=v[i]; } dif=21-s; for (i=1;i<=n;i++) c[v[i]]--; for (i=2;i<dif;i++) st+=c[i]; for (i=dif;i<=11;i++) dr+=c[i]; if (st>dr) 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...