mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-18 04:11:59 +00:00
11 lines
229 B
C++
11 lines
229 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
double s, a, b;
|
|
scanf("%lf%lf%lf", &s, &a, &b);
|
|
printf("%.6lf\n", ((b + a) * s / (b + 3 * a)) / b + (s - ((b + a) * s / (b + 3 * a))) / a);
|
|
return 0;
|
|
}
|