已解决 董宇昊 初级启示者 #include<bits/stdc++.h> using namespace std; int main(){ int n,a,b; cin>>n; cin>>a>>b; printf("%.2f\n",(double)(a*max(a,b))/(a+b)); return 0; }