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

[백준/파이썬]10180번 Ship Selection

by 현장 2021. 4. 9.

-코드

t = int(input())

for i in range(t):
    n, d = map(int, input().split())
    r = 0
    for j in range(n):
        v, f, c = map(int, input().split())
        k = d / v * c
        if k <= f:
            r += 1
    print(r)