Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77953 sh25_wangsj 最大数max(x,y,z) C++ 通过 0 MS 260 KB 308 2025-12-26 15:07:17

Tests(1/1):


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


测评信息: