← Back to List

10180번: Ship Selection ↗

Solutions

Python 3
182 B | 182 chars
for _ in range(int(input())):
  n, d = map(int,input().split())
  ans = 0
  for i in range(n):
    v,f,c = map(int,input().split())
    if d * c<= v * f:
      ans += 1
  print(ans)