#1#2#4#5wa了,样例过了,但20分,求改进
查看原帖
#1#2#4#5wa了,样例过了,但20分,求改进
981833
Joseph_J楼主2023/7/13 09:28
#include<bits/stdc++.h>

using namespace std;
int main(){
	
	int a,b,c;
	double p,s;
	cin>>a>>b>>c;
	
	p=(a+b+c)/2;
	s=sqrt(p*(p-a)*(p-b)*(p-c));
	
	cout<<fixed<<setprecision(1);
	cout<<s;
	
	return 0;
}
2023/7/13 09:28
加载中...