Problem 175724 · easy · Phase 01 Prerequisites & Setup

Seconds to H:MM:SS

input · integer division · modulo · f-strings

A stopwatch reports elapsed time as a single number of seconds. Read that number and print it as H:MM:SS, where minutes and seconds always have two digits and hours has as many digits as needed (no padding).

Examples

Input:  3725
Output: 1:02:05
Input:  59
Output: 0:00:59

Constraints

  • 0 <= seconds <= 10**7

Goals

  • Split a count of seconds into hours, minutes and seconds with // and %
  • Zero-pad numbers to two digits in an f-string
Starting Python…