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

把 n 个骰子扔在地上,求点数和为 s 的几率。 html Input: n = 1 Output: [[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,
相关文章
相关标签/搜索