Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
51644 | littletwleve | 最大数max(x,y,z) | C++ | 通过 | 0 MS | 252 KB | 284 | 2024-09-23 12:44:43 |
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; }
exit code: 0, checker exit code: 0