剑指 offer第60题-n 个骰子的点数-CSDN博客

网站介绍:文章浏览阅读206次。把 n 个骰子扔在地上,求点数和为 s 的概率。Input: n = 1Output: [[1, 0.17], [2, 0.17], [3, 0.17], [4, 0.17], [5, 0.17], [6, 0.17]]Explanation: Throw a dice, the sum of the numbers facing up may be 1, 2, 3, 4, 5, 6, ...