URI 1046 Game Time solution in JAVA
Hello, i just solved a pretty simple problem of URI in java. And want to share with you !
Solution with Explanation
So its basically a game of time, where we need to calculate the duration of the game, knowing that the game can begin in a day and finish in another day, with a maximum duration of 24 hours.
Two integer numbers representing the start and end time of a game.
Sample input :
Print the duration of the game as in the sample output.
Sample output :
O JOGO DUROU 6 HORA(S)
Hope this will help you and let me know if you have any better solution <3