URI Online Judge | 1019 Time Conversion Solve with source code
URI Online Judge | 1019
Time Conversion
Adapted by Neilor Tonin, URI Brazil
Timelimit: 1
Read an integer value, which is the duration in seconds of a certain event in a factory, and inform it expressed in hours:minutes:seconds.Input
The input file contains an integer N.
Output
Print the read time in the input file (seconds) converted in hours:minutes:seconds like the following example.
SOLVE
N = int(input())
hour = N//3600
N = N%3600
minu = N // 60
N %=60
sec=N
print("%d:%d:%d"%(hour,minu,sec))
Comments
Post a Comment