可用max和min且要用到#include<bits/stdc++.h>才能解題
答案在下面!!!
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f;
int main()
{
cin>>d>>e>>f;
a=min({d,e,f});
c=max({d,e,f});
b=d+e+f-a-c;
cout<<a<<" "<<b<<" "<<c<<endl;
if(a+b<=c)
{
cout<<"No";
}
else
{
a*=a;b*=b;c*=c;
if(a+b<c)cout<<"Obtuse"<<endl;
else if(a+b==c)cout<<"Right"<<endl;
else cout<<"Acute"<<endl;
}
}