freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-240-top-dice.md

32 lines
635 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f45d1000cf542c50ff6f
title: 问题240顶部骰子
challengeType: 5
videoUrl: ''
---
# --description--
有1111种方式可以滚动五个6面骰子编号为1到6的边使前三个总和为15.一些例子是:
D1D2D3D4D5 = 4,3,6,3,5
D1D2D3D4D5 = 4,3,3,5,6
D1D2D3D4D5 = 3,3,3,6,6
D1D2D3D4D5 = 6,6,3,3,3
在多少个方面可以滚动20个12面骰子编号为1到12的边使前十个骰子总和达到70
# --hints--
`euler240()`应该返回7448717393364182000。
```js
assert.strictEqual(euler240(), 7448717393364182000);
```
# --solutions--