题解
2023-06-25 15:24:43
发布于:上海
90阅读
0回复
0点赞
#include <iostream>
#include <iomanip>
using namespace std;
int f(int a,int b,int c)
{
double m=max(max(a,b),c);
double n=max(max(a+b,b),c)*max(max(a,b),c+b);
m=m/n;
cout<<fixed<<setprecision(2)<<m;
}
double x,y,z;
int main()
{
cin>>x>>y>>z;
f(x,y,z);
return 0;
}
全部评论 2
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; double m=max(max(a,b),c)/(max(max(a+b,b),c)*max(max(a,b),b+c)); printf("%.2f",m); return 0; }
1周前 来自 北京
0OLE了,改一下
1周前 来自 北京
0
有帮助,赞一个