BOJ - 10180 - Ship Selection

Updated:

import sys

def solution():
    T = int(sys.stdin.readline())
    for _ in range(T):
        N, D = map(int, sys.stdin.readline().split())
        ret = 0
        for _ in range(N):
            v, f, c = map(int, sys.stdin.readline().split())
            if (v * f // c) >= D: ret += 1
        print(ret)

solution()

https://www.acmicpc.net/problem/10180

Categories:

Updated:

Leave a comment