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
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
EntrarVisible tests
1
Input
3, 0Expected
902
Input
12, 0Expected
03
Input
6, 0Expected
1804
Input
3, 30Expected
755
Input
9, 15Expected
172.56
Input
15, 30Expected
75Focus radio
Paused · SomaFM · Fluid