11 条题解

  • 1
    @ 2023-12-26 13:13:11
    #include<bits/stdc++.h>
     using namespace std; 
    int main() 
    {
    double a,b,c,s,p; 
    cin>>a>>b>>c;
     p=(a+b+c)/2.00; 
    s=p*(p-a)*(p-b)*(p-c); 
    if(a+b>c&&a-b<c)
     {
    cout<<fixed<<setprecision(2)<<sqrt(s);
    } 
    else
    {
    cout<<"Error!";
    }
     return 0;
     }
    

    信息

    ID
    27
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    228
    已通过
    106
    上传者