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 <iostream>
using namespace std;
int fr[] = { 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 16, 4 }, s=21, n, i, s1, s2, x;
int main() {
cin>>n;
for ( i=1; i <= n; i++ ) cin>>x, fr[x]--, s -= x;
for ( i=2; i <= 11; i++)
if ( i <= s ) s1 += fr[i];
else s2 += fr[i];
if ( s1 > s2 ) cout<<"VUCI";
else cout<<"DOSTA";
return 0;
}
# | 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... |