root • 2年前
using namespace std; int main() {//x = (a+b)s/(3a+b);
double s, a, b; cin >> s >> a >> b; double x = (a+b)*s/(3*a+b); cout << fixed << setprecision(3) << x/b+(s-x)/a <<endl;
}
评论:
请先登录,才能进行评论