17 lines
358 B
Plaintext
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 ";
|
||
|
}
|