#include #include #include int main() { int n; scanf("%d",&n); while(n--) { double a,b,c; scanf("%lf%lf%lf",&a,&b,&c); if(sqrt(b*b-4*a*c)-(int)sqrt(b*b-4*a*c)) printf("NO\n"); else printf("YES\n"); } return 0; }