20分,求助大佬!!
查看原帖
20分,求助大佬!!
456394
moqwq楼主2022/12/20 20:01
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
    int a,b,c;
    cin>>a>>b>>c;
    double p=(a+b+c)/2,x=sqrt(p*(p-a)*(p-b)*(p-c));
    printf("%.1lf",x);
}

2022/12/20 20:01
加载中...