###### tags: `APCS` `c++` # 題解 zerojudge c294: APCS-2016-1029-1三角形辨別 ```cpp= #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b) swap(a,b); if(a>c) swap(a,c); if(b>c) swap(b,c); cout<<a<<" "<<b<<" "<<c<<endl; if((a+b)<=c) cout<<"No"<<endl; else if((a*a+b*b)<(c*c)) cout<<"Obtuse"<<endl; else if((a*a+b*b)==(c*c)) cout<<"Right"<<endl; else if((a*a+b*b)>(c*c)) cout<<"Acute"<<endl; } ```