Enough Fuel to Arrive

Before heading to the next gas station, you need to know whether the car can make it on the fuel left. Write zero_fuel, which receives the distance to the pump distance_to_pump, the car's efficiency mpg in kilometers per litre, and the remaining fuel fuel_left. Return True if the fuel is enough to reach the pump; otherwise return False.

Примеры

Ввод
50, 25, 2
Вывод
True
Ввод
100, 50, 1
Вывод
False
Ввод
100, 50, 3
Вывод
True

Нужно реализовать

def zero_fuel(distance_to_pump: int, mpg: int, fuel_left: int) -> bool:

Теги

math
PostgreSQLv16

Itt jelenik meg a kód futtatásának eredménye

Visible tests
1
Input
50, 25, 2
ExpectedTrue
2
Input
100, 50, 1
ExpectedFalse
3
Input
100, 50, 3
ExpectedTrue
4
Input
10, 4, 3
ExpectedTrue
5
Input
60, 30, 1
ExpectedFalse
6
Input
100, 50, 999999
ExpectedTrue
Focus radio
Paused · SomaFM · Fluid