提交时间:2026-02-03 11:56:10

运行 ID: 83864

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