You are fighting the final dragon boss in Minecraft. The dragon has health points $$$n$$$, and you have a sword with the following properties:
Your initial health point is $$$m$$$ initially. Every time after you hit the dragon, if the health points of the dragon are less than $$$1$$$, it is defeated. Otherwise, it immediately rebounds $$$k$$$ $$$(k \lt m)$$$ points of damage to you. If your health point is less than $$$1$$$, you are defeated and cannot take any action.
In addition, you can use bandages any number of times. When you use a bandage, it restores your health to $$$m$$$. Note that using a bandage and attacking are independent.
Find the minimum number of bandages required to defeat the dragon.
The first line contains a single integer $$$t$$$ ($$$1 \le t\le 100$$$), the number of test cases.
The only line of each test case contains three integers $$$n,m,k$$$ ($$$1\le n,k\le 100$$$, $$$k \lt m \le 101$$$).
For each test case, output the minimum number of bandages required to defeat the dragon.
44 3 24 3 110 7 396 101 23
1 0 3 17
In the first test case, the optimal action is:
After that, the dragon is defeated. The number of bandages used is $$$1$$$.