← Back to List

28225번: Flower Festival ↗

Solutions

Python 3
150 B | 150 chars
n, f = map(int, input().split())
l = [[i, *map(int, input().split())] for i in range(n)]
l.sort(key=lambda t : ((f - t[1]) / t[2]))
print(l[0][0] + 1)