streamers-5

Prayatna decoration work is going on at full swing. In order to decorate the MIT road, Don has an infinite supply of streamers of length m. However, he found out that the distance between two consecutive poles is k, and that (n+1) poles are present, and hence n streamers of length k are required to decorate.

Don plans on cutting the streamers and joining them with glue, so that he gets the required streamers of the required length. Find the minimum number of cuts required.

Input
The first line of the input contains ite, the number of test cases.
Then, ite lines follow, each containing 3 numbers, k, n, m

Output
Print ite lines, each containing the answer.

Input Constraints
1 ≤ ite ≤ 1000
1 ≤ n,m,k ≤ 1000

SAMPLE INPUT
2
5 4 4
6 100 3

SAMPLE OUTPUT
3
0

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions: