Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If N students take K apples and distribute them among each other evenly.
- # The remaining (the indivisible) part remains in the basket.
- students = int(input())
- apples = int(input())
- # How many apples will each single student get?
- print (apples // students)
- # How many apples will remain in the basket?
- print (apples % students)
Advertisement
Add Comment
Please, Sign In to add comment