#=================================== # Tanzila Islam # Email: tanzilamohita@gmail.com # Language: Python 3.7 #=================================== def clockMath(h, m): h = h % 12 h_a = 0.5 * (h*60+m) m_a = 6 * m angle = abs(h_a - m_a) angle = min(360-angle, angle) return angle H, M = map(int, input().split()) result = clockMath(H, M) print(result)
No comments:
Post a Comment