Clock Hands Angle
Difficulty: Hard
Phase: 1 · Conditional Thinking
XP Reward: 30 XP
Topics: Conditional Thinking, Hard
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given hour H (1-12) and minute M (0-59) on separate lines. Print the smaller angle in degrees (rounded to 1 decimal place or integer if whole). Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 3 0
Output: 90
Explanation: Sample execution for input 3 0