#include #include #include using namespace std; typedef long long LL; LL a, b, c; int work(){ LL t = b * b - 4 * a * c; LL x = (int)floor(sqrt(t + 0.5)); if(x * x == t){ return 1; } else{ return 0; } } int main(){ int T; scanf("%d", &T); while(T--){ scanf("%I64d%I64d%I64d", &a, &b, &c); puts(work() ? "YES" : "NO"); } }