提交时间:2023-11-08 13:56:09

运行 ID: 109412

#include<bits/stdc++.h> using namespace std; int main() { double v1,v2,s,b; cin>>s>>v1>>v2; b=(v2-v1)/2; s=s/(2*v1+b); v1=v1*s/v1; v2=(s+v1)/v2; printf("%.2lf",v1+v2); return 0; }