Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1.  
  2. my_input = '700\n10\n1'
  3.  
  4. my_input = my_input.split('\n')
  5. n_person = int(my_input[0])
  6. n_boat = int(my_input[1])
  7. n_ferries = int(my_input[2])
  8.  
  9. total_save = n_ferries * 500 + n_boat * 4
  10.  
  11. my_output = n_person - total_save
  12.  
  13. print(my_output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement