Given three integer numbers , and , does there exist a natural such that ?
Input consists of the number of cases , followed by triples with , and . You can assume , , and . Additionally, assume for the “hard private test cases”.
For each case, print “YES” or “NO”
depending on whether
has at least one solution
or not.
Input
7 2 1 0 7 3 6 8 3 6 6 0 5 6 0 1 1000000000 42424242 1 1000000000 123456789 987654320
Output
NO YES NO NO YES YES NO