Time Machine
Statement
Goal
Your objective is to add n minutes to the current timeInput
Int n representing minutes to add
String stime representing current time
String stime representing current time
Output
stime enlarged by n
Constraints
Minutes to add 0 <= n <= 60
Time range 00:00 <= stime <= 23:59
Time range 00:00 <= stime <= 23:59
Example
Input
1 23:59
Output
00:00
Game modes
Fastest, Reverse
Test cases
Test 1 Test
Input
1
23:59
Output
00:00
Validator 1 Validator
Input
1
14:59
Output
15:00
Test 2 Test
Input
5
11:23
Output
11:28
Validator 2 Validator
Input
9
05:16
Output
05:25
Test 3 Test
Input
50
12:59
Output
13:49
Validator 3 Validator
Input
26
16:59
Output
17:25
Test 4 Test
Input
21
22:39
Output
23:00
Validator 4 Validator
Input
60
02:49
Output
03:49
Solution language
Solution
Stub generator input