Codeforces Round 973 (Div. 2)
A
Zhan's Blender
Codeforces
800
原题
←B →
翻译中…

Today, a club fair was held at "NSPhM". In order to advertise his pastry club, Zhan decided to demonstrate the power of his blender.

翻译中…

To demonstrate the power of his blender, Zhan has $n$ fruits.

翻译中…

The blender can mix up to $x$ fruits per second.

翻译中…

In each second, Zhan can put up to $y$ fruits into the blender. After that, the blender will blend $\min(x, c)$ fruits, where $c$ is the number of fruits inside the blender. After blending, blended fruits are removed from the blender.

翻译中…

Help Zhan determine the minimum amount of time required for Zhan to blend all fruits.

翻译中…

Input

翻译中…

Each test contains multiple test cases. The first line contains the number of test cases $t$ ($1 \le t \le 1000$). The description of the test cases follows.

翻译中…

The first line of each test case contains one integer $n$ ($0 \le n \le 10^9$) — the number of fruits Zhan has.

翻译中…

The second line of each test case contains two integers $x$ and $y$ ($1 \le x, y \le 10^9$) — the number of fruits the blender can blend per second and the number of fruits Zhan can put into the blender per second.

翻译中…

Output

翻译中…

For each testcase, output a single integer — the minimum number of seconds to blend all fruits.

翻译中…

Note

翻译中…

In the first example, you can first put $2$ fruits in the blender. After that, the blender will mix these $2$ fruits, and in the end, there will be $0$ fruits left in the blender. Then you can put $3$ fruits into the blender, after which the blender will mix these $3$ fruits.

翻译中…

In the second example, you can put $1$ fruit into the blender $3$ times.

翻译中…

In the third example, you can first put $3$ fruits into the blender, then add another $3$ fruits.

翻译中…

样例

Input #1
5
5
3 4
3
1 2
6
4 3
100
4 3
9
3 3
Output #1
2
3
2
34
3
InputCopy OutputCopy
题目信息
题号
2013A
时间限制
1 s
内存限制
256 MB
标签
构造
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。