水题
#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { double l,a,b; while(~scanf("%lf%lf%lf",&l,&a,&b)) { printf("%.4lf ",l/(a+b)*a); } return 0; }
水题
#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { double l,a,b; while(~scanf("%lf%lf%lf",&l,&a,&b)) { printf("%.4lf ",l/(a+b)*a); } return 0; }