| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82617 | sh25_zhuhy | 最大数max(x,y,z) | C++ | 通过 | 0 MS | 248 KB | 298 | 2026-01-16 16:04:29 |
#include<iostream> #include<iomanip> using namespace std; int xmax(int a,int b,int c){ if(a>=b&&a>=c) return a; else return xmax(b,c,a); } int main(){ int a,b,c; cin>>a>>b>>c; cout<<fixed<<setprecision(3)<<1.0*xmax(a,b,c)/xmax(a+b,b,c)/xmax(a,b,b+c); return 0; }