#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main(){
double a,b,c,p,s;
cin>>a>>b>>c;
p=0.5*(a+b+c);
s=sqrt(p*(p-a)*(p-b)*(p-c));
cout<<setprecision(1)<<fixed<<s<<endl;
return 0;
}
洛谷【入门1】顺序结构 P5708 【深基2.习2】三角形面积
于 2024-02-27 11:17:49 首次发布