#include <iostream>
#include <algorithm>
using namespace std;
int pow(int x)
{
return x * x;
}
int main()
{
int a , b , c;
cin >> a >> b >> c;
int t[4] = {0 , a , b , c};
sort(t + 1 , t + 3 + 1);
if(t[1] + t[2] < t[3])
{
cout << "Not triangle" << endl;
return 0;
}
if(pow(t[1]) + pow(t[2]) == pow(t[3]))
{
cout << "Right triangle" << endl;
}
else if(pow(t[1]) + pow(t[2]) > pow(t[3]))
{
cout << "Acute triangle" << endl;
}
else if(pow(t[1]) + pow(t[2]) < pow(t[3]))
{
cout << "Obtuse triangle" << endl;
}
if(t[1] == t[2] || t[1] == t[3] || t[2] == t[3])
{
cout << "Isosceles triangle" << endl;
}
if(t[1] == t[2] && t[2] == t[3])
{
cout << "Equilateral triangle" << endl;
}
return 0;
}
讨论版看了好久,但是看了很多跟我一样83卡最后一个的也还是没懂自己的哪里错了555 求dalao解惑