11 条题解

  • -1
    @ 2024-1-2 13:28:59

    #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n,s; cin>>a>>b>>c; n=(a+b+c)/2; s=n*(n-a)(n-c)(n-b); if(a+b>c&&b+c>a&&a+c>b) { cout<<fixed<<setprecision(2)<<sqrt(s);

    }
    else
    {
    	cout<<"Error!";
    }
    
    return 0;
    

    }

    信息

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