Leading Hand (2)

Write a function @leading_hand(h, m)@ that given integers 0 ≤ h < 24 and
0 ≤ m < 60 representing a digital hour returns the leading hand of an
analogical watch pointing out that hour. Depending on value parameters
the function returns either the string "hour hand", "minute hand" or
"draw". Leading hand is the one closest to 12 following the clockwise
rotation. We assume hour hand has only 12 possible configurations and
minute hand has 60.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T17:17:17.300Z

© Jutge.org, 2006–2026.
https://jutge.org
