fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. signed main(){
  5. double l,p,q;
  6. cin>>l>>p>>q;
  7. double t=l/(p+q);
  8. cout<<t*p<<'\n';
  9.  
  10.  
  11. return 0;
  12. }
  13.  
  14.  
Success #stdin #stdout 0.01s 5532KB
stdin
Standard input is empty
stdout
1.88288e-310