You are not logged in. Please login at www.codechef.com to post your questions!

×

# marbles logic HELP PLSS

 0 What is the logic of marbles in medium practice section....how it can be (n-1)C(k-1)??.....pls help...thanks asked 04 Feb '14, 12:11 1★chaseme 626●9●24●43 accept rate: 0% 3.6k●13●35●55

 3 Just two days back even i was wondering the same.. when i found this and please go through Wikipedia. It contains detailed explanation. It'll surely help..!!! :) answered 06 Feb '14, 01:11 71●1●3 accept rate: 50%
 1 There are many duplicates questions related to question please see this post . http://discuss.codechef.com/questions/38041/medium-level-problem-marbles-sigsegv-error. Hope this will help. Thanks . answered 06 Feb '14, 00:23 3.6k●13●35●55 accept rate: 10%
 0 Reali thanks..this qstion was disturbing me for two days... answered 06 Feb '14, 03:30 1★chaseme 626●9●24●43 accept rate: 0%
 0 You can use the popular Beggar's method (is usually taught in High Schools). Distribution of n-k coins to k beggars. For distribution of r identical coins among n beggars is c(n+r-1,r-1) Applying the formula you get required the formula answered 18 Dec '18, 22:33 1 accept rate: 0%
 toggle preview community wiki:
Preview

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×2,559
×545
×11

question asked: 04 Feb '14, 12:11

question was seen: 4,224 times

last updated: 18 Dec '18, 22:33