simeonshopov

Elevator

Nov 25th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. people = int(input())
  2. capacity = int(input())
  3.  
  4. if people // capacity <= 1:
  5.   print(1)
  6. elif people % capacity == 0:
  7.   print(people // capacity)
  8. else:
  9.   result = (people // capacity) + 1
  10.   print(result)
Advertisement
Add Comment
Please, Sign In to add comment