Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83116 sh25_shengmy 最大数max(x,y,z) C++ 运行超时 1000 MS 244 KB 317 2026-01-22 20:16:31

Tests(0/1):


#include<iostream> #include<iomanip> using namespace std; typedef int i; i x(i a,i b,i c){ if(a>=b&&b>=c) return a; else return x(b,c,a); } i main(){ i a,b,c; cin>>a>>b>>c; double m=x(a,b,c); m=m/x(a+b,b,c); m=m/x(a,b,b+c); cout<<fixed<<setprecision(3)<<m; return 0; }


测评信息: