Help me with a Combinatorics problem

Правка en2, от Mr.Adnan, 2017-06-04 18:55:56

Here, Uva 13043- Marbles

How to solve it?

I had an idea. As example for for 3rd case =

ans is 900C20 * 880C20 * 860C20 * 840C20 * 820C20

As the k<=50 I can do it k times By reducing X from N every time. But my this code doesn't work correctly. Help me Someone plz.

http://codepad.org/LplfZ29V

Теги combinatorics, uva 13043

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Mr.Adnan 2017-06-04 18:55:56 1 Tiny change: 'n\nI had a idea. As ' -> 'n\nI had an idea. As '
en1 Английский Mr.Adnan 2017-06-04 18:53:34 349 Initial revision (published)