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
PostgreSQLv16

Тук ще се появи резултатът от изпълнението на кода

Visible tests
1
Input
0, 1, 1
Expected61000
2
Input
1, 1, 1
Expected3661000
3
Input
0, 0, 0
Expected0
4
Input
1, 0, 0
Expected3600000
5
Input
2, 30, 0
Expected9000000
6
Input
0, 2, 1
Expected121000
Focus radio
Paused · SomaFM · Fluid