Silly clock
Statement
Goal
This puzzle is meant to be played as reverse, reading the description may help you understand, but tests are more importantHere is a clock that will consume your time!
Reading time when it is written in the decimal system is not natural, but when the number given is the remaining time before tomorrow your brain can decide to give up.
(Un)Fortunately you've been told that displayed decimals are minutes, maybe that could help you convert that nonsense into a readable time for humans...
Input
One line: number a string representing a number, sometimes an integer, sometimes a float
Output
One line: the formatted time it is, as HH:MM
Constraints
number is an integer: 0 <= number < 24
number is a float: 0 <= integer part of number < 24 and 0 < decimal part of number < 100
number is a float: 0 <= integer part of number < 24 and 0 < decimal part of number < 100
Example
Input
4.3
Output
19:30
Game modes
Reverse
Test cases
Simple float Test
Input
4.3
Output
19:30
Simple float Validator
Input
2.3
Output
21:30
No minutes Test
Input
5
Output
19:00
No minutes Validator
Input
4
Output
20:00
Two decimals Test
Input
8.15
Output
15:45
Two decimals Validator
Input
9.25
Output
14:35
More than 60 minutes Test
Input
14.7
Output
08:50
More than 60 minutes Validator
Input
15.8
Output
07:40
Close to next hour Test
Input
2.02
Output
21:58
Close to next hour Validator
Input
1.01
Output
22:59
Happy new day! Test
Input
23.59
Output
00:01
Happy new day! Validator
Input
23.57
Output
00:03
Solution language
Solution
Stub generator input