#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; int main() { int t; cin >> t; while(t--) { ll a,b,c; cin >> a >> b >> c; bool yes = false; ll d = b*b - 4 *a *c; if(d < 0) { printf("NO\n"); continue; } ll e = (ll)sqrt(d+0.5); if(e*e != d) { printf("NO\n"); continue; } cout <<"YES"<