P20364 [CodeChef] CARRYGOLD
普及-
题目描述

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.

输入格式

见题面

输出格式

见题面

样例输入
3 2 10 3 2 10 4 1 5 10
样例输出
NO YES YES