56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
---
|
||
id: 5900f45d1000cf542c50ff6f
|
||
challengeType: 5
|
||
title: 'Problem 240: Top Dice'
|
||
videoUrl: ''
|
||
localeTitle: 问题240:顶部骰子
|
||
---
|
||
|
||
## Description
|
||
<section id="description">有1111种方式可以滚动五个6面骰子(编号为1到6的边),使前三个总和为15.一些例子是: <p> D1,D2,D3,D4,D5 = 4,3,6,3,5 </p><p> D1,D2,D3,D4,D5 = 4,3,3,5,6 </p><p> D1,D2,D3,D4,D5 = 3,3,3,6,6 </p><p> D1,D2,D3,D4,D5 = 6,6,3,3,3 </p><p>在多少个方面可以滚动20个12面骰子(编号为1到12的边),使前十个骰子总和达到70? </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler240()</code>应该返回7448717393364182000。
|
||
testString: 'assert.strictEqual(euler240(), 7448717393364182000, "<code>euler240()</code> should return 7448717393364182000.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler240() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler240();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|