# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
469959 | rainboy | COCI17_cezar (COCI17_cezar) | C11 | 1 ms | 276 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 <stdio.h>
#define A 11
int main() {
static int kk[A + 1];
int n, a, d, k;
scanf("%d", &n);
d = 21;
while (n--) {
scanf("%d", &a);
d -= a;
kk[a]++;
}
if (d < 2) {
printf("DOSTA\n");
return 0;
}
k = 0;
for (a = 2; a <= A && a <= d; a++)
k += (a == 10 ? 16 : 4) - kk[a];
for (a = d + 1; a <= A; a++)
k -= (a == 10 ? 16 : 4) - kk[a];
printf(k <= 0 ? "DOSTA\n" : "VUCI\n");
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... |