劍指 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,
相關文章
相關標籤/搜索