You are given the equation, . You have to determine whether there exists at least one integer such that .
Input starts with an integer (), denoting the number of test cases. Each test case contains two integers and ().
For each test case of input, print “Yes” if there exists at least one integer such that , print “No” otherwise.
Input | Output |
---|---|
1 7 13 | Yes |
This problem was authored for CodeMask Championship 2016 and is being hosted on Toph per organizer’s request.