提交时间:2026-01-16 16:04:29

运行 ID: 82617

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