c++,求助,AC了1个
查看原帖
c++,求助,AC了1个
1288262
I_am_code楼主2024/3/2 10:07
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	float p=(a+b+c)/2;
	float square=sqrt(p*(p-a)*(p-b)*(p-c));
	cout<<fixed<<setprecision(1)<<square<<endl;
	return 0;
}

这是我的代码,问一下错哪里了

2024/3/2 10:07
加载中...