Clock Hand Angle

You can calculate the angle between clock hands from the current time. Given hours and minutes, return the smaller angle between the hour hand and the minute hand. Remember that the hour hand moves smoothly between hour marks as the minutes pass. Round the result to one decimal place.

Примеры

Ввод
3, 0
Вывод
90
Ввод
12, 0
Вывод
0
Ввод
6, 0
Вывод
180

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

def clock_angle(hours: int, minutes: int) -> float:

Теги

math
PostgreSQLv16

Her vises resultatet af din kode

Visible tests
1
Input
3, 0
Expected90
2
Input
12, 0
Expected0
3
Input
6, 0
Expected180
4
Input
3, 30
Expected75
5
Input
9, 15
Expected172.5
6
Input
15, 30
Expected75
Focus radio
Paused · SomaFM · Fluid