- C20250089's blog
A1152 最大数max(x,y,z)
- 2023-3-13 9:47:55 @
#include<bits/stdc++.h>
using namespace std;
double zuida(double x,double y,double z){
if(x>=y&&x>=z){
return x;
}
else if(y>=x&&y>=z){
return y;
}
else{
return z;
}
}
int main(){
double a,b,c;
cin>>a>>b>>c;
double m=zuida(a,b,c)/zuida(a+b,b,c)/zuida(a,b,b+c)*1.0;
cout<<fixed<<setprecision(3)<<m;
return 0;
}