Problem
The ultimate battle has begun in Tekken.
Each fight has two players. Let the initial health of the players be and , then, after the fight, the health of both the players reduces by .
Anna, Bob, and Claudio have initial health levels of and respectively. Each pair of players fight exactly once.
Considering that you can schedule the fight between each pair in any order, find whether Anna can have a positive health level at the end of the battle.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- The first and only line of each test case contains three space-separated integers and — the initial health levels of Anna, Bob, and Claudio respectively.
Output Format
For each test case, output on a new line, YES
, if you can schedule the fight between each pair in an order such that Anna can have a positive health at the end of the battle. Otherwise, output NO
.
You can print each character in uppercase or lowercase. For example NO
, no
, No
, and nO
are all considered identical.
Constraints
Sample 1:
3 4 2 0 2 7 4 5 1 4
YES NO YES
Explanation:
Test case : Consider the following sequence of fights:
- Fight : Anna and Bob fight. Thus, the health level of both players reduces by . The final health levels of Anna and Bob after the fight are and respectively.
- Fight : Bob and Claudio fight. Thus, the health level of both players reduces by . The final health levels of Bob and Claudio after the fight are and respectively.
- Fight : Anna and Claudio fight. Thus, the health level of both players reduces by . The final health levels of Anna and Claudio after the fight are and respectively.
Thus, in the above sequence of fights, Anna has a positive health remaining at the end.
Test case : It can be shown that there exists no sequence of fights such that Anna has a positive health remaining at the end of the battle.
Test case : Consider the following sequence of fights:
- Fight : Bob and Claudio fight. Thus, the health level of both players reduces by . The final health levels of Bob and Claudio after the fight are and respectively.
- Fight : Anna and Bob fight. Thus, the health level of both players reduces by . The final health levels of Anna and Bob after the fight are and respectively.
- Fight : Anna and Claudio fight. Thus, the health level of both players reduces by . The final health levels of Anna and Claudio after the fight are and respectively.
Thus, in the above sequence of fights, Anna has a positive health remaining at the end.
ConversionConversion EmoticonEmoticon