Chef is currently working for a secret research group called NEXTGEN. While the rest of the world is still in search of a way to utilize Helium-3 as a fuel, NEXTGEN scientists have been able to achieve 2 major milestones:
- Finding a way to make a nuclear reactor that will be able to utilize Helium-3 as a fuel
- Obtaining every bit of Helium-3 from the moon's surface
Moving forward, the project requires some government funding for completion, which comes under one condition: to prove its worth, the project should power Chefland by generating at least units of power each year for the next years.
Help Chef determine whether the group will get funded assuming that the moon has grams of Helium-3 and gram of Helium-3 can provide units of power.
Input Format
- The first line of input contains an integer , the number of testcases. The description of test cases follows.
- Each test case consists of a single line of input, containing four space-separated integers respectively.
Output Format
For each test case print on a single line the answer — Yes
if NEXTGEN satisfies the government's minimum requirements for funding and No
otherwise.
You may print each character of the answer string in either uppercase or lowercase (for example, the strings "yEs"
, "yes"
, "Yes"
and "YES"
will all be treated as identical).
Constraints
Subtasks
Subtask #1 (100 points): Original constraints
Sample Input 1
4
1 2 3 4
4 3 2 1
2 18 9 4
1 100 2 49
Sample Output 1
Yes
No
Yes
No
Explanation
Test case : Chefland requires units of power for the next years. In total, the moon must be capable of providing units of power. There are in total grams of Helium-3 on the moon which is capable of providing units of power. , so the project satisfies the minimum requirements for funding. Thus, the answer is Yes
.
Test case : The total amount of power needed by Chefland is , whereas the total that can be provided by the Helium-3 present on the moon is , which is insufficient to receive funding, so the answer is No
.
Test case : The total amount of power needed by Chefland is , and the total that can be provided by the Helium-3 present on the moon is , which is sufficient to receive funding, so the answer is Yes
.
Test case : The total amount of power needed by Chefland is , and the total that can be provided by the Helium-3 present on the moon is , which is insufficient to receive funding, so the answer is No
.
ConversionConversion EmoticonEmoticon