# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
200892 | SamAnd | COCI17_cezar (COCI17_cezar) | C++17 | 6 ms | 504 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 <bits/stdc++.h>
using namespace std;
const int N = 55;
int n;
int a[N];
int q[N];
int main()
{
for (int i = 2; i <= 10; ++i)
q[i] = 4;
q[10] += 12;
q[11] = 4;
scanf("%d", &n);
int x = 0;
for (int i = 1; i <= n; ++i)
{
scanf("%d", &a[i]);
x += a[i];
--q[a[i]];
}
x = (21 - x);
int q1 = 0;
for (int i = 2; i <= x; ++i)
q1 += q[i];
int q2 = 0;
for (int i = x + 1; i <= 11; ++i)
q2 += q[i];
if (q1 > q2)
printf("VUCI\n");
else
printf("DOSTA\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... |