7 条题解

  • 0
    @ 2025-3-18 15:52:46

    #include <bits/stdc++.h>

    using namespace std; double a,b,c,S,p;

    int main() { cin>>a>>b>>c; if(a>0 and b>0 and c>0 and a+b>c and a+c>b and b+c>a){ p=0.5*(a+b+c); S=sqrt(p*(p-a)(p-b)(p-c)); printf("%.2f",S); }else{ cout<<"Data Error!"<<endl; }

    return 0;
    

    }

    信息

    ID
    41
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    919
    已通过
    347
    上传者