Search This Blog

Uri Online judge - 1047| Game Time with Minutes | problem solution in c

Timelimit: 1
Read the start time and end time of a game, in hours and minutes (initial hour, initial minute, final hour, final minute). Then print the duration of the game, knowing that the game can begin in a day and finish in another day,
Obs.: With a maximum game time of 24 hours and the minimum game time of 1 minute.


Four integer numbers representing the start and end time of the game.


Print the duration of the game in hours and minutes, in this format: “O JOGO DUROU XXX HORA(S) E YYY MINUTO(S)” . Which means: the game lasted XXX hour(s) and YYY minutes.

Solution:  Read my solution

#ltslearn #Let's Learn

No comments

Powered by Blogger.