| Sugar Sweet ❤️ |
|---|
| Закончено |
Sharing is caring, and Darcy_Liu loves to share. If he has $$$x$$$ slices of pizza to give away and split evenly among his $$$N$$$ friends, how many slices can he give to each, and how many will be left over?
One line consisting of 2 integers $$$x$$$ and $$$N$$$ $$$(1 \le x,N \le 10^9)$$$.
For each test case, output 1 line containing the number of slices each friend will get followed by the number of slices left over.
5 2
2 1
9 3
3 0
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.
| Название |
|---|


