Milliseconds Since Midnight
Computers often measure time in milliseconds because it makes intervals easy to compare and calculate. Write a function past that takes hours h, minutes m, and seconds s. Return how many milliseconds have passed from the start of the day to that moment.
Примеры
Ввод
0, 1, 1Вывод
61000Ввод
1, 1, 1Вывод
3661000Ввод
0, 0, 0Вывод
0Нужно реализовать
def past(h: int, m: int, s: int) -> int:
Теги
math
Log in om je inzendingsgeschiedenis te zien
InloggenLog in om de AI-mentor te gebruiken
InloggenVisible tests
1
Input
0, 1, 1Expected
610002
Input
1, 1, 1Expected
36610003
Input
0, 0, 0Expected
04
Input
1, 0, 0Expected
36000005
Input
2, 30, 0Expected
90000006
Input
0, 2, 1Expected
121000Focus radio
Paused · SomaFM · Fluid