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
Logi sisse, et näha esituste ajalugu
Logi sisseLogi sisse, et kasutada AI mentorit
Logi sisseTests12
Visible tests
Peidetud test 7
Peidetud test 8
Peidetud test 9
Peidetud test 10
Peidetud test 11
Peidetud test 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