Submission #151405

#TimeUsernameProblemLanguageResultExecution timeMemory
151405mayhoubsalehCOCI17_cezar (COCI17_cezar)C++14
50 / 50
2 ms376 KiB
#include<bits/stdc++.h> #define pb push_back using namespace std; int n; int cnt[12]={0,0,4,4,4,4,4,4,4,4,16,4}; int x=21; int main(){ cin>>n; for(int i=0;i<n;i++){ int y; cin>>y; cnt[y]--; x-=y; } x=min(x,11),x=max(x,2); int l=0,r=0; for(int i=2;i<=x;i++)l+=cnt[i]; for(int i=x+1;i<12;i++)r+=cnt[i]; if(r>=l)cout<<"DOSTA"<<endl; else cout<<"VUCI"<<endl; 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...