Submission #655597

#TimeUsernameProblemLanguageResultExecution timeMemory
655597GarfieldLjeto (COCI21_ljeto)Cpython 3
25 / 50
17 ms2844 KiB
n = int(input()) ascore = 0 bscore = 0 t1 = 0 a1 = 0 b1 = 0 for i in range(n): t2, a2, b2 = [int(i) for i in input().split()] points = 100 if t2 - t1 <= 10 and a2 == a1: points += 50 if a2 <= 4: ascore += points else: bscore += points t1, a1, b1 = t2, a2, b2 print(ascore, bscore)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...