#7Easy
Seconds to clock time
Time: 1 s · Memory: 256 MB
- Input and output
Statement
seconds have passed since the start of the day (00:00:00). Print the current time as HH:MM:SS.
Input format
A single integer ().
Output format
The time as HH:MM:SS: hours, minutes and seconds with two digits each, padded with a leading when needed (for example, 07:05:09).
Examples
Input
3661
Output
01:01:01
Input
45296
Output
12:34:56
Note
Hours are integer-divided by , minutes are the remainder of divided by , integer-divided by , and seconds are the remainder of divided by .
Two-digit output: Python — f"{h:02d}", C++ — printf("%02d", h), Go — fmt.Printf("%02d", h).
