logo AlgoBeat OnlineJudge
登录 注册

#214092. [VKOSHP 2024] Two Scooters

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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.

样例

样例输入 1

473 10 11

样例输出 1

4200