githubNonFunziona/2-3-b.spp

17 lines
358 B
Plaintext
Raw Permalink Normal View History

2024-12-05 10:57:14 +00:00
#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 ";
}