SimeonTs

SUPyF2 D.Types and Vars Exercise - 03. Elevator

Sep 27th, 2019
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. """
  2. Data Types and Variables - Exercise
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1722#2
  4.  
  5. SUPyF2 D.Types and Vars Exercise - 03. Elevator
  6.  
  7. Problem:
  8. Calculate how many courses will be needed to elevate n persons by using an elevator of capacity of p persons.
  9. The input holds two lines: the number of people n and the capacity p of the elevator.
  10.  
  11. Examples:
  12. Input: Output:
  13. 17
  14. 3      6
  15. Input: Output:
  16. 4
  17. 5      1
  18. Input: Output:
  19. 10
  20. 5      2
  21. """
  22. import math
  23. print(math.ceil(int(input()) / int(input())))
Add Comment
Please, Sign In to add comment