Submission #339783

#TimeUsernameProblemLanguageResultExecution timeMemory
339783ammar2000COCI17_cezar (COCI17_cezar)C++17
45 / 50
1 ms384 KiB
#include <bits/stdc++.h> using namespace std; int n,in,fs,ss,cs; map <int ,int >mp; int main() { for (int i=1;i<=11;i++) { if (i==10) mp[i]=16; else mp[i]=4; } cin>>n; while (n--) { cin>>in; cs+=in; mp[in]++; } int x=21-cs; for (int i=1;i<=min(x,11);i++) fs+=mp[i]; for (int i=x+1;i<=11;i++) ss+=mp[i]; if (fs<=ss) 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...