5305: ABC176——Task A:章鱼小丸子(takoyaki)
[Creator : ]
Description
高桥喜欢吃章鱼小丸子,一种球状小吃。
有一种制作章鱼小丸子的机器,它可以一次制作 $X$ 个章鱼小丸子,需要花费的时间为 $T$ 分钟。
问制作 $N$ 个章鱼小丸子需要多久。
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?
有一种制作章鱼小丸子的机器,它可以一次制作 $X$ 个章鱼小丸子,需要花费的时间为 $T$ 分钟。
问制作 $N$ 个章鱼小丸子需要多久。
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?
Input
一行三个整数 $N, X, T$,用空格隔开。
$1 \leq N, X, T \leq 1000$
所有的数据都是整数。
$1 \leq N, X, T \leq 1000$
所有的数据都是整数。
Output
一个整数,表示答案。
Sample 1 Input
20 12 6
Sample 1 Output
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.
Note that being able to make $12$ in $6$ minutes does not mean he can make $2$ in $1$ minute.
Sample 2 Input
1000 1 1000
Sample 2 Output
1000000