Advertisement
desislava_topuzakova

1. Moon

Apr 16th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import math
  2. speed = float(input())
  3. liters = float(input())
  4. allDistance = 384400 * 2
  5. time = math.ceil(allDistance/speed)
  6. allTime = (int)(time + 3)
  7. fuel = (int)((liters * allDistance)/100)
  8. print(allTime)
  9. print(fuel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement