求调
查看原帖
求调
750968
Ashle_M楼主2022/7/19 12:21

求调

#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
    double a,b,c,p,s;
    p = (a + b + c)/2.0;
    s = sqrt (p* (p - a)*(p - b)*(p - c));
    scanf("%lf %lf %lf",&a,&b,&c);
    printf("%.1lf",s);
    return 0;
}
2022/7/19 12:21
加载中...