Chef has decided to go to a gold mine along with N of his friends (thus, total N+1 people including Chef go to the gold mine).

The gold mine contains a total of X kg of gold. Every person has the capacity of carrying up \textbf{atmost} Y kg of gold.

Will Chef and his friends together be able to carry up all the gold from the gold mine assuming that they can go to the mine exactly once.

------ Input Format ------ 

- First line will contain T, number of testcases. Then the testcases follow.
- Each testcase contains of a single line of input, three integers N, X, Y.

------ Output Format ------ 

For each testcase, output "YES" if you and your friends can carry all the gold, otherwise output "NO".

You may print each character of the string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤ N,X,Y ≤ 1000$

----- Sample Input 1 ------ 
3
2 10 3
2 10 4
1 5 10

----- Sample Output 1 ------ 
NO
YES
YES

----- explanation 1 ------ 
Test Case $1$: You along with your friends can only carry a maximum of $9 (3 \times 3) $ kg of gold.

Test Case $2$: It is possible to carry all the gold from the mine. You can carry $4$ kg of gold and your both friends carry $3$ kg of gold each, thus carrying the whole $10$ kg of gold.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
for i in range(int(input())):
	(x, y, z) = input().split()
	(x, y, z) = (int(x), int(y), int(z))
	if (x + 1) * z >= y:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(n, x, y) = map(int, input().split())
	if (n + 1) * y < x:
		print('NO')
	else:
		print('YES')


T = int(input())
for i in range(T):
	(N, X, Y) = map(int, input().split())
	total = (N + 1) * Y
	if total >= X:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(n, x, y) = map(int, input().split())
	if (n + 1) * y >= x:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	l = [int(z) for z in input().split()]
	(x, y, v) = (l[0], l[1], l[2])
	if (x + 1) * v >= y:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(n, a, b) = map(int, input().split())
	if a <= (n + 1) * b:
		print('YES')
	else:
		print('NO')


tc = int(input())
for _ in range(tc):
	(n, x, y) = list(map(int, input().split()))
	print(['NO', 'YES'][y * (n + 1) >= x])


t = int(input())
for x in range(t):
	(a, b, c) = input().split()
	total_capacity = (int(a) + 1) * int(c)
	if total_capacity >= int(b):
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(n, x, y) = [int(i) for i in input().split()]
	if (n + 1) * y >= x:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	n = input()
	l = [i for i in n.split()]
	(a, b, c) = (int(l[0]), int(l[1]), int(l[2]))
	if (a + 1) * c >= b:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(l, r, m) = map(int, input().split())
	if (l + 1) * m >= r:
		print('YES')
	else:
		print('NO')


t = int(input())
while t != 0:
	k = input().split()
	n = int(k[0])
	x = int(k[1])
	y = int(k[2])
	if (n + 1) * y >= x:
		print('YES')
	else:
		print('NO')
	t = t - 1


def check_gold_can_be_carried(N, X, Y):
	total_capacity = (N + 1) * Y
	if total_capacity >= X:
		return 'YES'
	else:
		return 'NO'
T = int(input())
for i in range(T):
	(N, X, Y) = map(int, input().split())
	result = check_gold_can_be_carried(N, X, Y)
	print(result)