Submission #655597

# Submission time Handle Problem Language Result Execution time Memory
655597 2022-11-04T22:09:19 Z Garfield Ljeto (COCI21_ljeto) Python 3
25 / 50
17 ms 2844 KB
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
1 Correct 13 ms 2816 KB Output is correct
2 Correct 13 ms 2772 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 2812 KB Output is correct
2 Correct 13 ms 2840 KB Output is correct
3 Correct 13 ms 2844 KB Output is correct
4 Correct 13 ms 2828 KB Output is correct
5 Correct 15 ms 2832 KB Output is correct
6 Correct 13 ms 2772 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2816 KB Output is correct
2 Correct 13 ms 2772 KB Output is correct
3 Correct 14 ms 2812 KB Output is correct
4 Correct 13 ms 2840 KB Output is correct
5 Correct 13 ms 2844 KB Output is correct
6 Correct 13 ms 2828 KB Output is correct
7 Correct 15 ms 2832 KB Output is correct
8 Correct 13 ms 2772 KB Output is correct
9 Correct 17 ms 2744 KB Output is correct
10 Correct 14 ms 2816 KB Output is correct
11 Incorrect 14 ms 2832 KB Output isn't correct
12 Halted 0 ms 0 KB -