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.
Author: Ivan Geffner
Generation: 2026-01-25T10:31:11.350Z
© Jutge.org, 2006–2026.
https://jutge.org