This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |