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
Logáil isteach chun stair na n-aighneachtaí a fheiceáil
Logáil isteachLogáil isteach chun an Meantóir IS a úsáid
Logáil isteachTests12
Visible tests
Tástáil fholaithe 7
Tástáil fholaithe 8
Tástáil fholaithe 9
Tástáil fholaithe 10
Tástáil fholaithe 11
Tástáil fholaithe 12
They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.
Focus radio
Paused · SomaFM · Fluid