728x90
반응형
단순 사칙연산 문제이다. 이동거리 = 속도 * (연료양/연료소비율) = v * f/c
for _ in range(int(input())):
N, D = map(int, input().split())
cnt = 0
for i in range(N):
v, f, c = map(int, input().split())
if v * f/c >= D:
cnt += 1
print(cnt)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9622번 Cabin Baggage(python) (0) | 2021.02.23 |
---|---|
백준 알고리즘 9610번 사분면(python) (0) | 2021.02.23 |
백준 알고리즘 9493번 길면 기차, 기차는 빨라, 빠른 것은 비행기(python) (0) | 2021.02.23 |
백준 알고리즘 9469번 폰 노이만(python) (0) | 2021.02.23 |
백준 알고리즘 4619번 루트(python) (0) | 2021.02.23 |