count no. of ways.

Правка en1, от sahilshelangia, 2020-05-18 13:31:04

we are given N red balls and M blue balls, we have to find no. of arrangements of (n+m) balls such that no more than k balls are of same color.

1<n,m,k<=1000

Теги #dp, #combinatorics

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский sahilshelangia 2020-05-18 13:31:47 16 (published)
en1 Английский sahilshelangia 2020-05-18 13:31:04 194 Initial revision (saved to drafts)