-
个人简介
#include<bits/stdc++.h> using namespace std; int a[4],n=3; int main(){ for(int i=1;i<=3;i++){ cin>>a[i]; } sort(a+1,a+n+1); if(a[1]+a[2]<=a[3]){ cout<<"Not triangle\n"; return 0; } if(a[3]*a[3]==(a[2]*a[2]+a[1]*a[1])) cout<<"Right triangle\n"; else if(a[3]*a[3]>(a[2]*a[2]+a[1]*a[1])) cout<<"Obtuse triangle\n"; else if(a[3]*a[3]<(a[2]*a[2]+a[1]*a[1])) cout<<"Acute triangle\n"; if(a[1]==a[2]||a[2]==a[3]||a[3]==a[1]) cout<<"Isosceles triangle\n"; if(a[1]==a[2]&&a[2]==a[3]) cout<<"Equilateral triangle\n"; return 0; }
-
最近活动
-
Stat
-
Rating