Progress bar of the song
Statement
Goal
You all usually listen to music, today you are about to program the music bar in ASCII format.Given l length of the song and p the time when the song was paused (both in mm:ss format), you need to print the song's progress bar with already passed time intervals.
Max progress bar length is
Also the bar should be surrounded by "*", as you can see it in the example.
Input
Line 1: A string l for the time length of the song.
Line 2: A string p for the time song where the song is paused.
Line 2: A string p for the time song where the song is paused.
Output
An ASCII music bar stopped at time p.
Constraints
p ≤ l < 60:00
Example
Input
03:32 00:49
Output
***************** *--- * *****************
Game modes
Fastest
Test cases
Random stop Test
Input
03:32
00:49
Output
*****************
*--- *
*****************
Random stop2 Validator
Input
04:53
04:10
Output
*****************
*------------ *
*****************
Mid song Test
Input
04:20
02:10
Output
*****************
*------- *
*****************
Mid song2 Validator
Input
02:00
01:00
Output
*****************
*------- *
*****************
End of the song Test
Input
02:32
02:32
Output
*****************
*---------------*
*****************
End of the song2 Validator
Input
03:45
03:45
Output
*****************
*---------------*
*****************
Start of the song Test
Input
03:33
00:00
Output
*****************
* *
*****************
Start of the song2 Validator
Input
05:00
00:00
Output
*****************
* *
*****************
Solution language
Solution
Stub generator input