Submission #472720

#TimeUsernameProblemLanguageResultExecution timeMemory
472720Mr_OK_ManCOCI17_cezar (COCI17_cezar)C++17
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int main() { map<long long,long long>mp; for(int i=2;i<=14;i++) { if(i==14) { mp[12]+=4; } else if(i<14&&i>10) { mp[11]+=4; } else { mp[i]+=4; } } long long n; cin>>n; long long a[n],c=0,f=0,s=0; for(int i=0;i<n;i++) {cin>>a[i]; s+=a[i]; mp[a[i]]--; } long long h=21-s; // cout<<h<<endl; for(auto i:mp) { // cout<<i.first<<" "<<i.second<<endl; if(i.first>h) { c+=i.second; } else { f+=i.second; } } if(c>=f) { 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...