2014 Mock CCC by Alex and Timothy
Alice had just dug up an old time capsule that she had buried in her
backyard many years ago. Inside, she discovered an exquisite clock from
when she was a young girl. When she buried the clock, she had removed
the batteries so that the hands would remain in that position forever.
This was done so she could remind her future self of the exact time at
which she met her eternal love interest — Bob. Unfortunately, all but
the
Measuring the hour hand from the centre of the clock, Alice determined
that it was
Input Specification
Three lines, containing the three values
Output Specification
Output the time, in the format HH:MM:SS
, where
Sample Input 1
195
345
180
Sample Output 1
06:30:00
Sample Input 2
90.066667
270.733333
47.200000
Sample Output 2
03:00:08
Explanation
The following diagrams depict Alice's clock for the examples above. Orange is the hour hand, black is the minute hand, and red is the second hand.
Comments