# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
49502 | lcs147 | COCI17_cezar (COCI17_cezar) | C++98 | 3 ms | 620 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;
int cont[110];
int main(){
int n;
scanf("%d",&n);
int soma=0;
for(int i=2;i<=9;i++)cont[i]=4;
cont[10]=4*4;
cont[11]=4;
while(n--){
int a; scanf("%d",&a);
soma+=a;
cont[a]--;
}
int dif=21-soma;
int maior=0,menor=0;
for(int i=2;i<=11;i++){
if(i> dif) maior+=cont[i];
else menor+=cont[i];
}
if(maior>=menor)printf("DOSTA\n");
else printf("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... |