Submission #1107137

#TimeUsernameProblemLanguageResultExecution timeMemory
1107137toast12COCI17_cezar (COCI17_cezar)C++14
35 / 50
1 ms504 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> freq(12); int sum = 0; for (int i = 0; i < n; i++) { int x; cin >> x; freq[x]++; sum += x; } int tot = 52-accumulate(freq.begin(), freq.end(), 0); int cnt = 0; for (int i = 21-sum; i <= 11; i++) cnt += 4-freq[i]; if (cnt >= tot-cnt) cout << "DOSTA\n"; else cout << "VUCI\n"; 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...