問題一覧 > 通常問題

No.2621 Fee Schedule

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 265
作問者 : 👑 AngrySadEight / テスター : aplysiaSheep zeta7532
お気に入りにしたユーザー ProblemId : 10479 / 自分の提出
問題文最終更新日: 2024-01-10 03:06:08
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 417 (順位表) の他の問題:

Problem Statement

There is a shop that offers rental rooms. The shop has the following $2$ pricing plans, and a customer chooses one of them upon entering.

  • Plan A: $A$ yen per $1$ minute of usage.
  • Plan B: $B$ yen regardless of the usage time.

Hachiji wants to use a rental room for $C$ minutes. Find the minimum amount Hachiji has to pay in this case.

Constraints

  • All inputs are integers.
  • $1 \leq A \leq 10^3$
  • $1 \leq B \leq 10^6$
  • $1 \leq C \leq 10^3$

Input

The input is given from standard input in the following format.

$A$ $B$ $C$

Output

Output the answer.

Sample

Sample 1
Input
10 1000 60
Output
600

If Plan A is used, the fee is $600$ yen, since $10 \times 60 = 600$. This is the minimum amount to pay.

Sample 2
Input
10 1000 120
Output
1000

If Plan B is used, the fee is $1000$ yen. This is the minimum amount to pay.

Sample 3
Input
1000 999999 1000
Output
999999

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。