为什么第五个点没过?第五个点数据为888.88 888.88 888.88。
查看原帖
为什么第五个点没过?第五个点数据为888.88 888.88 888.88。
806299
tyyxbx楼主2022/12/1 13:07
#include<bits/stdc++.h>
using namespace std;
int main(){
    float a,b,c;
    float s;
    cin>>a>>b>>c;
    float p=(a+b+c)/2;
    s=sqrt(p*(p-a)*(p-b)*(p-c));
    printf("%0.1f\n",s);
    return 0;
}
2022/12/1 13:07
加载中...