I found this.
http://math.stackexchange.com/questions/261826/what-is-three-different-way-to-solve-this-probability-combinatorics-problem-of
刚开始以为您又要搞脑筋急转弯,故意把d改成了?d.