-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)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 15001번 Frog Leaps (0) | 2023.04.02 |
---|---|
[백준/파이썬] 25629번 홀짝 수열 (0) | 2023.04.01 |
[백준/파이썬] 24603번 Scaling Recipe (0) | 2023.03.30 |
[백준/파이썬] 25813번 Changing Strings (0) | 2023.03.29 |
[백준/파이썬] 26941번 Pyramidbygge (0) | 2023.03.28 |