Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
10281 huyanfeng 最大数max(x,y,z) C++ 通过 0 MS 252 KB 300 2023-02-21 20:50:40

Tests(1/1):


#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; }


测评信息: