哪里有问题啊
查看原帖
哪里有问题啊
1406135
HGT158楼主2024/9/18 23:39
#include<bits/stdc++.h>
#include <cmath>
int main()  
{  
    double a, b, c, p, d;  
    scanf("%lf %lf %lf", &a, &b, &c);  
    p = (a + b + c) * 0.5;  
    d = p * (p - a) * (p - b) * (p - c);  
    d = sqrt(d);  
    printf("%.1f", d);  
    return 0;  
}
2024/9/18 23:39
加载中...