how we could get three numbers without ordering and then assign is that Pythagorean triples
or not
inputs:
- n1
- n2
- n3
>Solution :
You can use this algotrithm :
#include<stdio.h>
int main(){
long long int a, b, c ;
scanf("%llu %llu %llu", &a, &b, &c);
if (a*a==b*b+c*c || b*b==a*a+c*c || c*c==a*a+b*b)
{
printf("YES");
}
else
printf("NO");
return 0;
}