Find the number of days required to reach the top of the staircase of Q stairs if one moves R stairs upwards during daytime and S stairs downwards during night.
The input starts with number of test cases, T. Then follows T test cases. Each test case consists of three integers R, S and Q separated by space in a single line.
For each test case, print the number of days required in a new line.
1<= T <= 100
1 <= S <= R <= Q<= 10^9
5 1 6
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.