Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-240-top-dice.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

49 lines
790 B
Markdown

---
id: 5900f45d1000cf542c50ff6f
title: 'Problem 240: Top Dice'
challengeType: 5
forumTopicId: 301887
dashedName: problem-240-top-dice
---
# --description--
There are 1111 ways in which five 6-sided dice (sides numbered 1 to 6) can be rolled so that the top three sum to 15. Some examples are:
D1,D2,D3,D4,D5 = 4,3,6,3,5
D1,D2,D3,D4,D5 = 4,3,3,5,6
D1,D2,D3,D4,D5 = 3,3,3,6,6
D1,D2,D3,D4,D5 = 6,6,3,3,3
In how many ways can twenty 12-sided dice (sides numbered 1 to 12) be rolled so that the top ten sum to 70?
# --hints--
`euler240()` should return 7448717393364182000.
```js
assert.strictEqual(euler240(), 7448717393364182000);
```
# --seed--
## --seed-contents--
```js
function euler240() {
return true;
}
euler240();
```
# --solutions--
```js
// solution required
```