#P1749. [入门赛 #19] 分饼干 II
[入门赛 #19] 分饼干 II
Problem Description
A teacher has cookies and wants to distribute them to children.
Each child must receive at least one cookie, and the teacher wants every child to receive a different number of cookies. Determine whether the teacher can achieve this goal.
Input Format
This problem contains multiple groups of testdata within a single test point.
The input has a total of lines.
The first line contains an integer , representing the number of testdata groups.
The next lines each contain two integers .
Output Format
Output lines, corresponding to the testdata groups in order.
- If it is possible, output
Yes. - If it is not possible, output
No.
1
1 1
Yes
1
5 3
No
Hint
Constraints
- For of the testdata: , .
- For of the testdata: .
Translated by ChatGPT 5