Sharing is caring, and
Input Specification
One line consisting of 2 integers
Output Specification
For each test case, output 1 line containing the number of slices each friend will get followed by the number of slices left over.
Sample Input 1
Copy
5 2
Sample Output 1
Copy
2 1
Explanation for Sample Output 1
For the 1st test case, he has 5 slices and 2 friends. He can give each friend 2 slices with 1 left over.
Sample Input 2
Copy
9 3
Sample Output 2
Copy
3 0
Explanation for Sample Output 2
For the 2nd case, he has 9 slices and 3 friends. He can give 3 to each friend, splitting them evenly with none left over.
Comments
Can we apreciatte how caring this person is? He shares all the pizza slices with his friends and doesn't get any for himself.