Given an integer t representing a time in seconds, output the time in hh:mm:ss format (24-hour).
For example, if t = 12345, then output "03:25:45" (without the quotes); if t = 0, then output "00:00:00" (without the quotes).
Hint:
Please follow the format %02d:%02d:%02d when you use printf
A format specifier follows this prototype: %[flags][width][.precision][length]specifier
| width | |
| number | Minimum number of characters to be printed. If the value to be printed is shorter than this number, the result is padded with blank spaces. |
| flag | description |
| 0 | Printing with the 0 (zero) flag fills in leading zeros. |
Example:
code: printf("%09d", 762);
output: 000000762
For more details, you can refer to the http://www.cplusplus.com/reference/cstdio/printf/
Input contains only a integer t, representing the time in seconds.
It is guaranteed that 0 <= t < 86400.
Print out the 24-hour format of the time (format described above).