Submission #141512

#TimeUsernameProblemLanguageResultExecution timeMemory
141512RadugnnCOCI17_cezar (COCI17_cezar)C++14
50 / 50
2 ms376 KiB
#include <iostream> using namespace std; int n, v[100], i, cnt,X, S; int main(){ cin>>n; for(i=1;i<=n;i++){ cin>>v[i]; S+=v[i]; } X=21-S; for(i=1;i<=n;i++) if(v[i]<=X) cnt++; if((X-1)*4-cnt <= 52- (X-1)*4 - (n-cnt)) 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...