Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
10902 | jiabokai | 最大数max(x,y,z) | C++ | Accepted | 0 MS | 244 KB | 300 | 2023-03-03 21:45:12 |
#include<bits/stdc++.h> using namespace std; double max(double a,double b,double c){ double max=a; if(max<b) max=b; if(max<c) max=c; return max; } 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)); cout<<fixed<<setprecision(3)<<m<<endl; }