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

Popular posts from this blog

How to solve an 8 puzzle problem using A* Algorithm in python

Timus Online Judge 1000. A+B Problem question and SOLVE with sudo code

URI Online Judge | 1013 The Greatest Solve with source code