#include<stdio.h>
#include<math.h>
int main(void)
{
double a, b, c, p, s;
scanf("%lf%lf%lf",&a, &b, &c);
p = (a + b + c) / 2;
printf("%.1lf", pow((p * (p - a) * (p - b) * (p - c)), 0.5));
return(0);
}
洛谷P5708 【深基2.习2】三角形面积经典解法
最新推荐文章于 2023-03-15 21:51:10 发布