这哪里错了
查看原帖
这哪里错了
1136029
zhongshengyuan楼主2024/4/26 12:50
#include<bits/stdc++.h>
using namespace std;
int main(){
    double a,b,c;
    double p;
    cin>>a>>b>>c;
    p=(a+b+c)*1/2.0;
    cout<<sqrt(p*(p-a)*(p-b)*(p-c));
    cout<<fixed<<setprecision(1)<<sum;
    return 0;
}
2024/4/26 12:50
加载中...