#include #include #include #include #include using namespace std; int main() { int t; cin>>t; while(t--) { long long a,b,c; cin>>a>>b>>c; long long k=b*b-4*a*c; if(k==(long long)sqrt(k*1.0)*(long long)sqrt(k*1.0)) { cout<<"YES"<