Submission #306347

#TimeUsernameProblemLanguageResultExecution timeMemory
306347syyCOCI17_cezar (COCI17_cezar)C++17
50 / 50
1 ms376 KiB
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for(int i = (int)a; i <= (int)b; i++) #define DEC(i, a, b) for(int i = (int)a; i >= (int)b; i--) typedef pair<int, int> pi; #define f first #define s second #define pb push_back multiset<int> se; int n, sum, arr[53], le; int main() { cin >> n; FOR(i, 1, n) { cin >> arr[i]; sum += arr[i]; } sum = 21 - sum; FOR(i, 2, 11) le += (i <= sum) * (i == 10?12:4); FOR(i, 1, n) if (arr[i] <= sum) le--; if (le > 52 - le - n) cout << "VUCI"; else cout << "DOSTA"; }
#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...