大佬求救!50分...
查看原帖
大佬求救!50分...
657210
dp_hater楼主2022/4/27 17:33
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	if(a+b<c||a+c<b||b+c<a){
		cout<<"Not triangle";
		return 0;
	}
	if(a>b) swap(a,b);
	if(b>c) swap(b,c);
	if(a>b) swap(a,b);
	if(a*a+b*b==c*c) cout<<"Right triangle";
	else if(a*a+b*b>=c*c) cout<<"Acute triangle";
	else cout<<"Obtuse triangle";
	if(a==b) cout<<"Isosceles triangle";
	if(a==b&&a==c) cout<<"Equilateral triangle";
	cout<<endl;
	return 0;
}

错哪里了?大佬们帮忙看一下哈

2022/4/27 17:33
加载中...