T or T

AtCoder
IDabc133_a
Time2000ms
Memory256MB
Difficulty
$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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "T or T",
    "description": {
      "content": "$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?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc133_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "$N$ of us are going on a trip, by train or taxi.\nThe train will cost each of us $A$ yen (the currency of Japan).\nThe taxi will cost us a total of $B$ yen.\nHow much is our minimum total travel expense?...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments