Submission #486982

#TimeUsernameProblemLanguageResultExecution timeMemory
486982model_codeLjeto (COCI21_ljeto)Cpython 3
50 / 50
21 ms2812 KiB
n = int(input()) last = [-100]*8 s = [0, 0] for i in range(n): t, a, b = map(int, input().split()) a-=1 b-=1 s[a > b] += 100 if t - last[a] <= 10: s[a > b] += 50 last[a] = t print(*s)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...