본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 24569번 Fergusonball Ratings

by 현장 2023. 3. 31.

-Code

n = int(input())
res = 0

for _ in range(n):
    p = int(input())
    f = int(input())
    if p * 5 - f * 3 > 40:
        res += 1

print(f"{res}+" if res == n else res)