Help me with a Combinatorics problem

Revision en1, by Mr.Adnan, 2017-06-04 18:53:34

Here, Uva 13043- Marbles

How to solve it?

I had a 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

Tags combinatorics, uva 13043

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Mr.Adnan 2017-06-04 18:55:56 1 Tiny change: 'n\nI had a idea. As ' -> 'n\nI had an idea. As '
en1 English Mr.Adnan 2017-06-04 18:53:34 349 Initial revision (published)