| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1364044 | luvwinter | COCI17_cezar (COCI17_cezar) | C++17 | 0 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i , l , r) for(int i = (l) ; i <= (r) ; i++)
int n;
int cnt[12];
void solve(void) {
FOR(i , 1 , 9) cnt[i] = 4;
cnt[10] = 16;
cnt[11] = 4;
cin >> n;
int sum = 0;
FOR(i , 1 , n) {
int x; cin >> x;
cnt[x]--;
sum += x;
}
if(n >= 21 || sum >= 21) {
cout << "DOSTA";
return;
}
else{
int v = 21 - sum;
int large = 0;
int small = 0;
FOR(i , 1 , 11) {
if(i > v) large += cnt[i];
else small += cnt[i];
}
if(small > large) cout << "VUCI";
else cout << "DOSTA";
}
}
main () {
ios_base :: sync_with_stdio(false);
cin.tie(NULL);
solve();
return 0;
}
Compilation message (stderr)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
