Back
Close

Clock Hands Angle

Statement

 Goal

Given a time, output the angles of the two hands.
Input
Line 1: Time in hh:mm format.
Output
Line 1: Angle of Hour hand.
Line 2: Angle of Minute hand.
Constraints
Time is given in 24-hour format.
0/12 o'clock is 0°.
Example
Input
00:00
Output
0
0

Game modes
Fastest, Shortest, Reverse

Test cases
Test 1 Test
Input
00:00
Output
0 0

Validator 1 Validator
Input
05:29
Output
164.5 174

Test 2 Test
Input
00:15
Output
7.5 90

Validator 2 Validator
Input
09:35
Output
287.5 210

Test 3 Test
Input
18:30
Output
195 180

Validator 3 Validator
Input
19:49
Output
234.5 294

Test 4 Test
Input
11:59
Output
359.5 354

Validator 4 Validator
Input
10:48
Output
324 288

Solution language

Solution

Stub generator input