Read problem statements in [Mandarin], [Bengali], [Russian], and [Vietnamese] as well.

Chef aims to be the richest person in Chefland by his new restaurant franchise. Currently, his assets are worth $A$ billion dollars and have no liabilities. He aims to increase his assets by $X$ billion dollars per year.

Also, all the richest people in Chefland are not planning to grow and maintain their current worth.

To be the richest person in Chefland, he needs to be worth at least $B$ billion dollars. How many years will it take Chef to reach his goal if his value increases by $X$ billion dollars each year?

------  Input ------

The first line contains an integer $T$, the number of test cases. Then the test cases follow. 
Each test case contains a single line of input, three integers $A$, $B$, $X$. 

------  Output ------
For each test case, output in a single line the answer to the problem.

------  Constraints  ------
$1 ≤ T ≤ 21\ 000$
$100 ≤ A < B ≤ 200$
$1 ≤ X ≤ 50$
$X$ divides $B - A$

------  Subtasks ------
Subtask #1 (100 points): Original constraints

----- Sample Input 1 ------ 
3
100 200 10
111 199 11
190 200 10
----- Sample Output 1 ------ 
10
8
1
----- explanation 1 ------ 
Test Case $1$: Chef needs to increase his worth by $200 - 100 = 100$ billion dollars and his increment per year being $10$ billion dollars, so it will take him $\frac{100}{10} = 10$ years to do so.

Test Case $2$: Chef needs to increase his worth by $199 - 111 = 88$ billion dollars and his increment per year being $11$ billion dollars, so it will take him $\frac{88}{11} = 8$ years to do so.

Test Case $3$: Chef needs to increase his worth by $200 - 190 = 10$ billion dollars and his increment per year being $10$ billion dollars, so it will take him $\frac{10}{10} = 1$ year to do so.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for i in range(t):
	(a, b, x) = map(int, input().split())
	print((b - a) // x)


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	ans = b - a
	print(ans // c)


n = int(input())
for i in range(0, n):
	(a, b, c) = map(int, input().split())
	d = b - a
	e = d // c
	print(e)


import math
for i in range(int(input())):
	(a, b, x) = map(int, input().split())
	gap = b - a
	years = math.ceil(gap / x)
	print(years)


s = int(input())
for i in range(s):
	(a, b, c) = list(map(int, input().split()))
	d = b - a
	print(d // c)


n = int(input())
for i in range(n):
	(p, q, r) = map(int, input().split())
	print(int((q - p) / r))


T = int(input())
for tc in range(T):
	(A, B, X) = map(int, input().split())
	worth_needed = B - A
	print(worth_needed // X)


t = int(input())
for i in range(t):
	(A, B, X) = map(int, input().split())
	d = abs(A - B)
	r = d // X
	print(r)


T = int(input())
if T < 1:
	T = 1
elif T > 21000:
	T = 21000
while T:
	(A, B, X) = input().split()
	(A, B, X) = (int(A), int(B), int(X))
	if A < 100:
		A = 100
	elif A > B:
		A = B - 1
	if B < A:
		B = A + 1
	elif B > 200:
		B = 200
	if X < 1:
		X = 1
	elif X > 50:
		X = 50
	incre = B - A
	años = abs(incre // X)
	print(años)
	T = T - 1


T = int(input())
for i in range(T):
	(x, y, z) = map(int, input().split())
	print((y - x) // z)


for _ in range(int(input())):
	(onci, m, on) = map(int, input().split())
	print((m - onci) // on)


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	x = b - a
	y = x / c
	print(int(y))


n = int(input())
for i in range(1, n + 1):
	(a, b, c) = [int(i) for i in input().split()]
	x = b - a
	v = x // c
	print(v)


n = int(input())
for i in range(n):
	(A, B, X) = map(int, input().split())
	print((B - A) // X)


t = int(input())
for i in range(t):
	(A, B, X) = map(int, input().split())
	Z = B - A
	S = Z // X
	print(S)


n = int(input())
for i in range(n):
	(a, b, x) = map(int, input().split())
	c = 0
	while b >= a:
		a += x
		c += 1
	print(c - 1)


n = int(input())
for i in range(n):
	(a, b, c) = list(map(int, input().split()))
	m = b - a
	print(m // c)


import math as np
for _ in range(int(input())):
	(x, y, t) = map(int, input().split(' '))
	print(np.ceil((y - x) / t))


r = int(input())
for i in range(r):
	(x, y, z) = map(int, input().split())
	t = y - x
	print(t // z)


t = int(input())
for i in range(t):
	(a, b, x) = map(int, input().split())
	i = 0
	while True:
		if a + i * x >= b:
			break
		i += 1
	print(i)


rich = int(input())
for i in range(rich):
	(A, R, S) = map(int, input().split())
	D = (R - A) // S
	print(D)


for i in range(int(input())):
	(a, p, q) = map(int, input().split())
	print((p - a) // q)


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:3]
	print(int((lst[1] - lst[0]) / lst[2]))


T = int(input())
for i in range(T):
	(A, B, X) = map(int, input().split())
	m = B - A
	print(m // X)


T = int(input())
for _ in range(T):
	(A, B, X) = map(int, input().split())
	years = 0
	while A < B:
		A += X
		years += 1
	print(years)


x = int(input())
for i in range(x):
	(m, n, o) = [int(i) for i in input().split()]
	print((n - m) // o)


n = int(input())
for i in range(n):
	str1 = input()
	l = str1.split()
	l = [int(i) for i in l]
	print((l[1] - l[0]) // l[2])


T = int(input())
for i in range(T):
	(A, B, X) = list(map(int, input().split()))
	C = B - A
	D = C // X
	print(D)


n = int(input())
for i in range(n):
	(a, b, c) = map(int, input().split())
	r = b - a
	res = r // c
	print(res)


t = int(input())
for t in range(t):
	lis = list(map(int, input().split()))
	(a, b, x) = lis
	print(int((b - a) / x))


t = int(input())
for i in range(t):
	(n, k, x) = map(int, input().split())
	if k > n:
		if (k - n) % x == 0:
			print((k - n) // x)
		else:
			print((k - n) // x + 1)


def code():
	cases = int(input())
	for _ in range(cases):
		(A, B, X) = map(int, input().split(' '))
		money_left = B - A
		years = money_left // X
		print(years)
code()


for i in range(int(input())):
	(x, y, z) = list(map(int, input().split()))
	temp = y - x
	print(int(temp / z))


t = int(input())
i = 1
while i <= t:
	i += 1
	(a, b, x) = map(int, input().split())
	c = b - a
	if c // x < (c < x):
		print(c // x + 1)
	else:
		print(c // x)


for i in range(int(input())):
	(a, b, c) = [int(i) for i in input().split()]
	print((b - a) // c)


for _ in range(int(input())):
	(x, y, z) = map(int, input().split())
	print((y - x) // z)


t = int(input())
for _ in range(t):
	(a, b, x) = list(map(int, input().split()))
	print(abs(a - b) // x)


T = int(input())
for _ in range(T):
	(A, B, X) = map(int, input().split())
	print((B - A) // X)


t = int(input())
for _ in range(t):
	(a, b, x) = map(int, input().split())
	m = b - a
	k = m // x
	print(k)