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
Accedi per vedere la cronologia degli invii
AccediAccedi per usare l'AI Mentor
AccediTests12
Visible tests
Test nascosto 7
Test nascosto 8
Test nascosto 9
Test nascosto 10
Test nascosto 11
Test nascosto 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