Back
Close

Precise Countdown

Statement

 Goal

You got a new job as a junior signmaker. Your first customer is a rocket launch site! They want you to make a sign for the public that shows how many seconds are left until the rocket launch happens, rounded to the nearest second.

The team at the site is using milliseconds for their processes and they want to inform visitors of launches when they are closer than 24 hours.

Your company is working with a 6 digit panel.
Input
An integer N for the number of milliseconds until lift-off.
Output
A clock-style output of the time until the launch. If it is more than a day in the future, the display should show "24plus". If, for example, there are 2 hours, 12 minutes, and 44 seconds left on the clock, the output should be "02:12:44".
Constraints
0 ≤ N ≤ 100 000 000
Example
Input
499
Output
00:00:00

Game modes
Fastest, Shortest, Reverse

Test cases
Almost launch time Test
Input
499
Output
00:00:00

Correct Rounding Validator
Input
5499
Output
00:00:05

Nothing to see Test
Input
90000000
Output
24plus

Correct overflow Validator
Input
86400001
Output
24plus

Minuteman Test
Input
119700
Output
00:02:00

Correct from Seconds to Minute Validator
Input
239501
Output
00:04:00

Happy Hour Test
Input
39600000
Output
11:00:00

Correct Hours Validator
Input
46800000
Output
13:00:00

Mixed results 1 Test
Input
17345762
Output
04:49:06

Random 1 Validator
Input
37345762
Output
10:22:26

Solution language

Solution

Stub generator input