QOJ.ac

QOJ

Limite de temps : 1.0 s Limite de mémoire : 512 MB Points totaux : 100 Hackable ✓

#16862. 两辆滑板车

Statistiques

Katya 知道骑滑板车从家到地铁站的时间是 $t$ 秒。

W 公司的滑板车骑行费用计算方式如下:首先确定行程的整分钟数,然后将该分钟数乘以 60 得到秒数,并按每秒 $c_1$ 分(cents)的费率计算费用。

Y 公司的滑板车骑行费用计算方式不同:首先按每秒 $c_2$ 分的费率计算行程费用,然后将该金额向上取整到最接近的整欧元(euro)。

请帮助 Katya 确定她选择其中一家公司的滑板车前往地铁站所需的最小费用。

请注意,1 欧元等于 100 分。

输入格式

第一行包含三个整数 $t$、$c_1$ 和 $c_2$ — 分别表示以秒为单位的行程时间、W 公司滑板车每秒的费率(分)、以及 Y 公司滑板车每秒的费率(分)($1 \le t \le 1000$,$10 \le c_1, c_2 \le 20$)。

输出格式

输出骑行的最小费用,以分为单位。

样例

输入样例 1

473 10 11

输出样例 1

4200

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.