# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
110609 | charlies_moo | COCI17_cezar (COCI17_cezar) | C++17 | 12 ms | 384 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
int main() {
int n;
scanf("%d", &n);
int cnt[12] = {0};
int cur = 0;
for (int i = 0; i < n; i++) {
int a;
scanf("%d", &a);
cur += a;
cnt[a]++;
}
int s1 = 0, s2 = 0;
for (int i = 1; i <= 11; i++) {
int rem = i == 10 ? 16 - cnt[i] : 4 - cnt[i];
if (i <= 21 - cur) {
s1 += rem;
} else {
s2 += rem;
}
}
printf("%s\n", s2 >= s1 ? "DOSTA" : "VUCI");
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |