洛谷 P5708 【深基2.习2】三角形面积
#include<bits/stdc++.h>
using namespace std;
int main()
{
	double a,b,c,p=0;
	cin >> a >> b >> c;
	p=1.0/2*(a+b+c);
	cout << fixed << setprecision(1) << sqrt(p*(p-a)*(p-b)*(p-c));
	return 0;	
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
	double a,b,c,p=0;
	cin >> a >> b >> c;
	p=1.0/2*(a+b+c);
	cout << fixed << setprecision(1) << sqrt(p*(p-a)*(p-b)*(p-c));
	return 0;	
}
