AtCoder Beginner Contest 133
翻译中…
Problem Statement
翻译中…
$N$ of us are going on a trip, by train or taxi.
翻译中…
The train will cost each of us $A$ yen (the currency of Japan).
翻译中…
The taxi will cost us a total of $B$ yen.
翻译中…
How much is our minimum total travel expense?
翻译中…
Constraints
翻译中…
- All values in input are integers.
$1 \leq N \leq 20$$1 \leq A \leq 50$$1 \leq B \leq 50$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N A B
翻译中…
Output
翻译中…
Print an integer representing the minimum total travel expense.
翻译中…
样例
Input #1
4 2 9
Output #1
8
The train will cost us $4 \times 2 = 8$ yen, and the taxi will cost us $9$ yen, so the minimum total travel expense is $8$ yen.
Input #2
4 2 7
Output #2
7
Input #3
4 2 8
Output #3
8
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。