Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h, m = map(int, input().split())
- m_Angle = m*6
- h_Angle = h*30 + m*0.5
- if abs(m_Angle - h_Angle) > 180: # if internal angle is more than 180
- print('%0.10f'% (360 - abs(m_Angle - h_Angle)))
- else: # if internal angle is less than 181
- print('%0.10f'% abs(m_Angle - h_Angle))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement