HDU 3903 Trigonometric Function

这题真难,并不会推理。。。

#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;

long long a, b, c;
int p;

int main()
{
    int T;
    scanf("%d", &T);
    while (T--)
    {
        scanf("%lld%lld%lld", &a, &b, &c);
        scanf("%d%d%d", &p, &p, &p);
        long long x = (a + b + c)*(b + c - a)*(a + c - b)*(a + b - c);
        long long z = (long long)sqrt(x);
        if (z*z == x) printf("YES
");
        else printf("NO
");
    }
    return 0;
}
原文地址:https://www.cnblogs.com/zufezzt/p/5249315.html