#K52827. Time Duration Formatter

    ID: 29396 Type: Default 1000ms 256MiB

Time Duration Formatter

Time Duration Formatter

This problem requires you to convert a non-negative integer, representing the total number of minutes, into a time duration represented in days, hours, and minutes. The resulting format should be dd:hh:mm, where:

  • dd is the number of days, computed using the formula \(days = \lfloor \frac{minutes}{24 \times 60} \rfloor\).
  • hh is the number of hours remaining after extracting the days, computed as \(hours = \lfloor \frac{minutes \bmod (24 \times 60)}{60} \rfloor\).
  • mm is the number of minutes remaining after extracting the days and hours, computed as \(minutes = minutes \bmod 60\).

All fields must be zero-padded to 2 digits. For example, an input of 5 should output 00:00:05 and an input of 1440 (which is one day) should output 01:00:00.

inputFormat

The input consists of a single integer read from standard input representing the total number of minutes. You can assume that the input integer is non-negative.

Input Format:

minutes

outputFormat

Output a single string representing the time duration in the format dd:hh:mm to standard output.

Output Format:

dd:hh:mm
## sample
0
00:00:00

</p>