Speed Converter
Data often arrives in one unit, while calculations need another — that is a common situation in real programs. Write a function cockroach_speed that takes a speed s in kilometers per hour and converts it to centimeters per second. Round the result down to a whole number.
Примеры
Ввод
1.08Вывод
30Ввод
1.09Вывод
30Ввод
0Вывод
0Нужно реализовать
def cockroach_speed(s: float) -> int:
Теги
math
Συνδεθείτε για να δείτε το ιστορικό υποβολών
ΣύνδεσηΣυνδεθείτε για να χρησιμοποιήσετε τον AI Mentor
ΣύνδεσηVisible tests
1
Input
1.08Expected
302
Input
1.09Expected
303
Input
0Expected
04
Input
3.6Expected
1005
Input
5.04Expected
1406
Input
1Expected
27Focus radio
Paused · SomaFM · Fluid