90pts求调回关
查看原帖
90pts求调回关
1250875
sqrt_PI楼主2025/7/24 21:22
#include<bits/stdc++.h>
#define S (a+b+c)/2
using namespace std;
int main(){
    double a,b,c;
    cin>>a>>b>>c;
    if(a+b<c||a+c<b||b+c<a||a-c>b||a-b>c||b-c>a||c-a>b||b-a>c||c-b>a){
        cout<<"No solution.";
    }else{
        printf("%.2f",(sqrt(S*(S-a)*(S-b)*(S-c))));
    }
    return 0;
}
2025/7/24 21:22
加载中...