| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75471 | sh25_shenpy | 最大数max(x,y,z) | C++ | 通过 | 0 MS | 260 KB | 310 | 2025-12-07 13:34:49 |
#include<bits/stdc++.h> using namespace std; int max(int a,int b,int c) { if(a>=c&&a>=b) return a; else return max(b,c,a); } int main() { int a,b,c; double m; cin>>a>>b>>c; m=1.0*max(a,b,c)/max(a+b,b,c)/max(a,b,b+c); cout<<fixed<<setprecision(3)<<m; return 0; }