怎么介绍?
分类:
2009-01-22 07:49:41
magine that there's a flag for each flavor of ice cream, and we need to
post the flags in the row of children. The child on the right of a flag will get that flavor of ice cream. There must be a flag on the far left or some children may not get any flavor of ice cream at all. Now the problem becomes inserting n-1 flags into m+(n-1) places, therefore C(m+n-1, n-1)