Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75359 sh25_ganzy 最大数max(x,y,z) C++ 通过 0 MS 252 KB 316 2025-12-05 16:16:43

Tests(1/1):


#include<bits/stdc++.h> using namespace std; float max(int a,int b,int c){ return max(max(a,b),c)+0.0; } float m_func(int a,int b,int c){ return 1.0*max(a,b,c)/max(a+b,b,c)/max(a,b,b+c); } int main(){ int a,b,c; cin>>a>>b>>c; cout<<fixed<<setprecision(3)<<m_func(a,b,c); return 0; }


测评信息: