3 条题解

  • 0
    @ 2022-2-10 9:56:42

    #include <stdio.h> #include #include <math.h> #include using namespace std; int main() { double a,b,c,p,x; cin>>a>>b>>c; p=(a+b+c)/2; x=(p-a)(p-b)(p-c)*p; double s=sqrt(x); if(a+b>c&&a+c>b&&c+b>a) { cout<<fixed<<setprecision(2)<<s<<endl; } else { cout<<"No Solution."; }

    }

    信息

    ID
    878
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    (无)
    递交数
    751
    已通过
    236
    上传者