Combinations with repetitions#11723

Combinations with repetitions

1 წამი
128 მეგაბაიტი
მარტივი

Find the number of ways to distribute identical objects among distinct positions, where each position can hold any number of objects.

შემავალი მონაცემები

Two positive integers and n~(k, n \le 100).

გამომავალი მონაცემები

Print the number of ways to distribute the objects modulo 10^9 + 7.

მაგალითები

მაგალითი 1

Loading
Loading

მაგალითი 2

Loading
Loading