朋友的孩子问一道题,离散数学,感觉很简单但却不知从何入手,大学的东西早丢在泗县湖里了。
写个小程序当然可以解决,但不符合要求。 各位老大,你会吗?
Snow White has 50 (American) one-dollar bills, which she wishes to divide up among seven different [2]
dwarves. Each dwarf may receive any integral (whole) number of bills, from 0 to 50. How many
different ways can she distribute this money?