Takoyaki

AtCoder
IDabc176_a
Time2000ms
Memory256MB
Difficulty
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most $X$ pieces of takoyaki at a time, taking $T$ minutes regardless of the number of pieces to make. How long does it take to make $N$ takoyaki? ## Constraints * $1 \leq N,X,T \leq 1000$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $N$ $X$ $T$ [samples]
Samples
Input #1
20 12 6
Output #1
12

He can make $12$ pieces of takoyaki in the first $6$ minutes and $8$ more in the next $6$ minutes, so he can make $20$ in a total of $12$ minutes.
Note that being able to make $12$ in $6$ minutes does not mean he can make $2$ in $1$ minute.
Input #2
1000 1 1000
Output #2
1000000

It seems to take a long time to make this kind of takoyaki.
API Response (JSON)
{
  "problem": {
    "name": "Takoyaki",
    "description": {
      "content": "Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most $X$ pieces of takoyaki at a time, taking $T$ minutes regardless of the number of pieces to make. How long d",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc176_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi loves takoyaki - a ball-shaped snack.\nWith a takoyaki machine, he can make at most $X$ pieces of takoyaki at a time, taking $T$ minutes regardless of the number of pieces to make.\nHow long d...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments