제출 #154622

#제출 시각아이디문제언어결과실행 시간메모리
154622dolphingarlicCezar (COCI17_cezar)C++14
20 / 50
3 ms564 KiB
#include <bits/stdc++.h> #define FOR(i, x, y) for (int i = x; i < y; i++) typedef long long ll; using namespace std; int cnt[12]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, res = 21; fill(cnt, cnt + 12, 4); cnt[10] = 16; cin >> n; FOR(i, 0, n) { int x; cin >> x; res -= x; cnt[x]--; } int c = 0; FOR(i, 2, min(14, res + 1)) c += cnt[i]; if (2 * c >= 52) 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...