Water for the Ride
Before a bike ride, it helps to estimate how much water you will need. The rule is simple: each hour of cycling uses 0.5 litres of water. Write a function litres that takes the time time in hours and returns the whole number of litres, rounded down.
Примеры
Ввод
2Вывод
1Ввод
1Вывод
0Ввод
3Вывод
1Нужно реализовать
def litres(time: int) -> int:
Теги
math
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inVisible tests
1
Input
2Expected
12
Input
1Expected
03
Input
3Expected
14
Input
6.7Expected
35
Input
0Expected
06
Input
999999Expected
499999Focus radio
Paused · SomaFM · Fluid