#P5707. 【深基2.例12】上学迟到
【深基2.例12】上学迟到
Problem Description
The distance between the school and yyy's home is meters, and yyy walks to school at a constant speed of meters per minute.
On the way to school, yyy also needs an extra minutes to do garbage sorting.
The school requires that yyy must arrive by a.m. Please calculate the latest time yyy can leave home without being late.
Because the trip is long, yyy may have to leave a bit earlier, but the time left earlier will not exceed one day.
Input Format
One line with two positive integers , representing the distance and the speed.
Output Format
Output a time in 24-hour format, representing the latest departure time for yyy.
The output format is , which represents the hour and minute. You must output two digits for each; if not enough, pad with in front.
100 99
07:48
Hint
For of the testdata, .
Translated by ChatGPT 5