20分求助。
查看原帖
20分求助。
1330438
12345678hzt楼主2024/8/17 13:57
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	double e,d;
	cin>>a>>b>>c;
	e=(a+b+c)/2*1.0;
	d=sqrt(e*(e-a)*(e-b)*(e-c));
	cout<<fixed<<setprecision(1)<<d;
	return 0;
}
2024/8/17 13:57
加载中...