#P11204. 「Cfz Round 9」Lone
「Cfz Round 9」Lone
Background
Problem Description
She has a wooden stick of length .
She wants you to cut this stick into smaller sticks, such that each smaller stick has a positive integer length, and any of the smaller sticks you choose can form a triangle by connecting end to end.
You want to determine whether you can satisfy her wish.
Input Format
This problem contains multiple test cases.
The first line contains a positive integer , which denotes the number of test cases.
Then follow the test cases. For each test case, there is one line containing two integers .
Output Format
For each test case, output one string per line:
- If you can satisfy her wish, output
Yes. - If you cannot, output
No.
3
4 7
3 4
5 21
Yes
No
Yes
Hint
"Sample Explanation #1"
For the -st test case, you can cut the stick into smaller sticks with lengths .
For the -nd test case, it can be proven that there is no solution that meets the requirements.
For the -rd test case, one feasible solution is to cut the stick into smaller sticks with lengths .
"Constraints"
For all testdata, it is guaranteed that:
- .
- .
This problem uses bundled tests.
- Subtask 0 (18 points): , .
- Subtask 1 (15 points): .
- Subtask 2 (32 points): .
- Subtask 3 (35 points): No special constraints.
Translated by ChatGPT 5