Combinations With Limits

38 Views Asked by At

N containers and M balls, each container has it's own capacity let's say (c1, c2, c3, ....cN), we well distribute the balls between containers where the whole capacity of containers is bigger than the number of balls, in how many ways we can do that???