Submission #164427

#TimeUsernameProblemLanguageResultExecution timeMemory
1644276arenCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms420 KiB
#include <bits/stdc++.h> using namespace std; #define all(s) s.begin(), s.end() #define vi vector<int> #define pb push_back #define ii pair<int, int> #define x first #define y second int cnt[20]; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; for (int i = 2; i <= 10; i++) { cnt[i] = 4; } cnt[10] = 16; cnt[11] = 4; int sum = 0; for (int i = 1; i <= n; i++) { int u; cin >> u; sum += u; cnt[u]--; } int x = 21 - sum; int lower = 0; int upper = 0; for (int i = 2; i <= x; i++) { lower += cnt[i]; } for (int i = x + 1; i <= 11; i++) { upper += cnt[i]; } if (lower >= upper) cout << "VUCI"; else cout << "DOSTA"; 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...