LearnPy Hub
← Arena
IntermediateRating 1300

Sharing Identical Sweets

In how many ways can n identical sweets be shared among k children (some may get none)?

Input

n k.

Output

A count.

Sample 1

Input
3 2
Output
4

Sample 2

Input
0 5
Output
1
solution.py
Output appears here
Sharing Identical Sweets · Python Arena problem · LearnPy Hub