Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83864 sh25_zhoumy 最大数max(x,y,z) C++ 通过 0 MS 252 KB 298 2026-02-03 11:56:10

Tests(1/1):


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


测评信息: