Santa Claus is a bit worried because the preparations are taking a long time. He has got a Scrum certification and has decided to use the Scrum methodology to organize the work of his elves.
The elfs tell him the expected duration of the tasks with a string with the format
hh:mm:ss and in the same format how long they have been working on it.
But Santa Claus does not get quickly if there is too much or too little left to finish, so he has asked us to make a program that tells us what portion of the task has already been completed.
For example, if the task lasts
03:00:00 and they have been working for
01:00:00 then they have already completed
1/3 of the task. In code:
getCompleted('01:00:00', '03:00:00') // '1/3' getCompleted('02:00:00', '04:00:00') // '1/2' getCompleted('01:00:00', '01:00:00') // '1/1' getCompleted('00:10:00', '01:00:00') // '1/6' getCompleted('01:10:10', '03:30:30') // '1/3' getCompleted('03:30:30', '05:50:50') // '3/5
ais the portion of the task that has already been completed and
bis the portion of the task that is left to complete.
2/4will never be shown because it can be represented as