fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. double v0, m, R, G, h;
  7. cin>>v0>>R>>m;
  8. G=6.67408*1e-11;
  9. h=(v0*v0*R*R)/(2*m*G);
  10. cout<<h<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3416KB
stdin
3 7 9
stdout
3.67092e+11