Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std; // Moon
- int main()
- {
- double v, f;
- cin >> v >> f;
- double time = ceil((384400 * 2) / v);
- time = time + 3;
- double fuel = f * 384400 * 2 / 100;
- printf("%.0f\n", time);
- printf("%.0f\n", fuel);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement