Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def courses_needed(N, P):
- full_courses = N // P
- remaining_people = N % P
- if remaining_people == 0:
- return full_courses
- else:
- return full_courses + 1
- N = int(input())
- P = int(input())
- courses = courses_needed(N, P)
- print(courses)
Advertisement
Add Comment
Please, Sign In to add comment