Easy
A Simple Clock
Write
class Clock with hours and minutes and a method tick(m) that moves forward m minutes (wrapping past 23:59). Its __str__ gives HH:MM. Read the start time and minutes to add, then print the clock.Input
Line 1: 'h m'. Line 2: minutes.
Output
HH:MM.
Sample 1
Input
9 30 45
Output
10:15
Sample 2
Input
23 59 1
Output
00:00
Output appears here