提交时间:2024-09-23 12:44:43
运行 ID: 51644
#include<bits/stdc++.h> using namespace std; double max(double x,double y,double z){ double sum=0,mx=x; if(mx<y) mx=y; if(mx<z) mx=z; return mx; } int main(){ double a,b,c,m; cin>>a>>b>>c; m=max(a,b,c)/(max(a+b,b,c)*max(a,b,b+c)); printf("%.3lf",m); return 0; }