Advertisement
Spocoman

Spaceship

Feb 13th, 2022
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. s = float(input())
  2. d = float(input())
  3. v = float(input())
  4. sv = float(input())
  5.  
  6. ship = s * d * v
  7. astronaut = (sv + 0.4) * 2 * 2
  8. team = int(ship / astronaut)
  9.  
  10. if team < 3:
  11.     print("The spacecraft is too small.")
  12. elif team > 10:
  13.     print("The spacecraft is too big.")
  14. else:
  15.     print(f'The spacecraft holds {team} astronauts.')
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement