#P13975. [VKOSHP 2024] Two Scooters
[VKOSHP 2024] Two Scooters
题目描述
Katya knows that the travel time from home to the metro on a scooter is seconds.
The cost of the ride on the scooter from company is calculated as follows: first, the number of full minutes spent on the trip is determined, then this time is multiplied by 60 and used to calculate the cost at the rate of cents per second.
The cost of the ride on the scooter from company is calculated differently: first, the cost of the trip is calculated at the rate of cents per second, and then this amount is rounded up to the nearest whole euro.
Help Katya understand what is the minimum cost she can get to the metro on a scooter from one of these companies.
Recall that there are 100 cents in one euro.
输入格式
The first line contains three integers , , and --- the travel time in seconds, the fare in cents per second on the scooter from company , and the fare in cents per second on the scooter from company (, ).
输出格式
Output the minimum cost of the ride in cents.
473 10 11
4200