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