Объяснение:
#include <iostream>
#include <vector>
#include <set>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (b > c){
swap(b, c);
}
if (a > c){
swap(a, c);
if (a + b <= c){
cout << "impossible";
}else if (c * c == a * a + b * b){
cout << "rectangular";
} else if (a * a + b * b < c * c){
cout << "obtuse";
} else if (a * a + b * b > c * c){
cout << "acute";
Объяснение:
#include <iostream>
#include <vector>
#include <set>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (b > c){
swap(b, c);
}
if (a > c){
swap(a, c);
}
if (a + b <= c){
cout << "impossible";
}else if (c * c == a * a + b * b){
cout << "rectangular";
} else if (a * a + b * b < c * c){
cout << "obtuse";
} else if (a * a + b * b > c * c){
cout << "acute";
}
}