Advertisement
krasio12356

Moon

Apr 16th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;                                     // Moon
  4.  
  5. int main()
  6. {
  7.     double v, f;
  8.     cin >> v >> f;
  9.     double time = ceil((384400 * 2) / v);
  10.     time = time + 3;
  11.     double fuel = f * 384400 * 2 / 100;
  12.     printf("%.0f\n", time);
  13.     printf("%.0f\n", fuel);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement