Solve problem "Apple sharing" online - Learn Python 3 - Snakify

Problem «Apple sharing» (Medium)


Statement

N students take K apples and distribute them among each other evenly. The remaining (the undivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket?

The program reads the numbers N and K. It should print the two answers for the questions above.


In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
6
50
8
2
1
10
10
0
5
25
5
0
4
2
0
2