wozhishibaocunchengshu
查看原帖
wozhishibaocunchengshu
283181
Jack_ocher楼主2020/6/3 07:59
#include<bits/stdc++.h>
using namespace std;
int a,b,c,a1,b1,c1,a2,b2,c2,a3,b3,c3,a4,b4,c4; 
int main()
{
	
	if(a2>b2) swap(b2,a2); 
	if(a2>c2) swap(c2,a2);
	if(b2>c2) swap(c2,b2);
	if(a2+b2<=c2) cout<<"Not triangle";
	if(a>b) swap(b,a); 
	if(a>c) swap(c,a);
	if(b>c) swap(c,b);
	if(a*a+b*b>c*c) cout<<"Acute triangle";
	if(a1>b1) swap(b1,a1); 
	if(a1>c1) swap(c1,a1);
	if(b1>c1) swap(c1,b1);
	if(a1*a1+b1*b1==c1*c1) cout<<"Right triangle";
	if(a3>b3) swap(b3,a3); 
	if(a3>c3) swap(c3,a3);
	if(b3>c3) swap(c3,b3);
	if(a*a+b*b<c*c) cout<<"Obtuse triangle";
	if(a4==b4 || b4==c4 || a4==c4) o
	

    return 0;
}


2020/6/3 07:59
加载中...