21 条题解

  • -5
    @ 2022-1-17 22:21:56
    #include <iostream>
    #include <stdio.h>
    #include <string.h>
    #include <queue>
    #include <math.h>
    #include <vector>
    #include <algorithm>
    #include <iomanip>
    #include <stack>
    
    using namespace std;
    
    #define LL long long
    const int N =1e5+10;
    const int INF =0x3f3f3f3f;
    
    int main(){
        double a,b,c,p;
        cin>>a>>b>>c;
        p=(a+b+c)/2;
        cout<<fixed<<setprecision(2)<<sqrt(p*(p-a)*(p-b)*(p-c))<<endl;
        return 0;
    }
    

    信息

    ID
    822
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    1335
    已通过
    469
    上传者