githubNonFunziona/2-3-b.spp
2024-12-05 13:57:14 +03:00

17 lines
358 B
Plaintext

#include <iostream>
int main()
{
int x, y, z;
std::cin >> x >> y >> z;
if(x + y <= z || x + z <= y || z + y <= x){
std::cout << "UNDEFINED ";
return 0;
}
if (y * y + z * z == x * x || x * x + z * z == y * y || y * y + x * x == z * z){
std::cout << "YES ";
return 0;
}
std::cout << "NO ";
}