Submission #161492

#TimeUsernameProblemLanguageResultExecution timeMemory
161492boolodifjenulaCOCI17_cezar (COCI17_cezar)Cpython 3
20 / 50
29 ms3452 KiB
n=int(input()) m=21 K=[4,4,4,4,4,4,4,4,16,4] for i in range(n): k=int(input()) m-=k K[k-2]-=1 if m<0: print("DOSTA") elif sum(K[:m-1])<=sum(K[m-1:]): print("DOSTA") else: print("VUCI")
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...