#P8807. [蓝桥杯 2022 国 C] 取模
[蓝桥杯 2022 国 C] 取模
Problem Description
Given , determine whether there exist two different numbers such that and .
Input Format
The input contains multiple independent queries.
The first line contains an integer , representing the number of queries.
The next lines each contain two integers , separated by a space, representing one query.
Output Format
Output lines. Each line corresponds to the result of one query. If such exist, output the word Yes; otherwise, output the word No.
3
1 2
5 2
999 99
No
No
Yes
Hint
For of the test cases, , .
For of the test cases, , .
For all test cases, , , .
Lanqiao Cup 2022 National Contest, Group C, Problem C.
Translated by ChatGPT 5