Submission #162024

# Submission time Handle Problem Language Result Execution time Memory
162024 2019-11-05T23:24:32 Z itiam COCI17_cezar (COCI17_cezar) Python 3
30 / 50
44 ms 3428 KB
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 X<=i:
        BVX+=S[i]
    else:
        BMX+=S[i]

if BVX>=BMX:
    print('DOSTA')
else:
    print('VUCI')
    
# Verdict Execution time Memory Grader output
1 Correct 25 ms 3428 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Correct 25 ms 3300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3300 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Incorrect 25 ms 3292 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 26 ms 3272 KB Output is correct
2 Correct 26 ms 3300 KB Output is correct
3 Correct 25 ms 3300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3300 KB Output is correct
2 Correct 26 ms 3300 KB Output is correct
3 Correct 25 ms 3300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 3332 KB Output is correct
2 Correct 27 ms 3396 KB Output is correct
3 Incorrect 27 ms 3300 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 3300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3300 KB Output is correct
2 Correct 25 ms 3364 KB Output is correct
3 Correct 28 ms 3300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 27 ms 3292 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Correct 44 ms 3320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3300 KB Output is correct
2 Incorrect 26 ms 3336 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 25 ms 3300 KB Output is correct
2 Correct 25 ms 3352 KB Output is correct
3 Correct 25 ms 3336 KB Output is correct