N=int(input())
# S - lista broja karata koje nose određeni broj bodova, početni špil
S=[]
for i in range(12):
if i==0 or i==1:
S.append(0)
if i>1 and i<10:
S.append(4)
if i==10:
S.append(12)
if i==11:
S.append(4)
#print (S)
# L - lista izvučenih brojeva
L=[]
for i in range(N):
# V - vrijednost, broj bodova izvučene karte
V=int(input())
L.append(V)
S[V]-=1
# X predstavlja razliku između 21 i brojeva koje sam izvukao
X=21-sum(L)
# BVX - broj prostalih karata većih od X
# BMX - broj preostlih karata manjih od X
BVX=0
BMX=0
for i in range(12):
if i>X:
BVX+=S[i]
else:
BMX+=S[i]
if BVX>=BMX:
print('DOSTA')
else:
print('VUCI')
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3372 KB |
Output is correct |
2 |
Correct |
24 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3272 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
24 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3272 KB |
Output is correct |
2 |
Correct |
26 ms |
3300 KB |
Output is correct |
3 |
Correct |
24 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
24 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3424 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
3332 KB |
Output is correct |
2 |
Correct |
24 ms |
3372 KB |
Output is correct |
3 |
Correct |
27 ms |
3364 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
24 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3380 KB |
Output is correct |
3 |
Correct |
26 ms |
3400 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
40 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
24 ms |
3300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
28 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3300 KB |
Output is correct |
3 |
Correct |
26 ms |
3300 KB |
Output is correct |