Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-423-consecutive-die-throws.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

51 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5141000cf542c510027
title: 问题423连续死球
challengeType: 5
videoUrl: ''
dashedName: problem-423-consecutive-die-throws
---
# --description--
令n为正整数。
一个6面的骰子被抛出n次。 令c为给出相同值的连续抛出的对数。
例如如果n = 7并且掷骰的值为1,1,5,6,6,6,3那么以下连续投掷对将给出相同的值 1,1,5,6,6,6,3 1,1,5,6,6,6,3 1,1,5,6,6,6,3 因此对于1,1,5,6,6,6,3c = 3。
将Cn定义为n次抛出6面骰子的结果数以使c不超过πn.1 例如C3= 216C4= 1290C11= 361912500和C24= 4727547363281250000。
对于1≤n≤L将SL定义为∑ Cn。 例如S50mod 1 000 000 007 = 832833871。
求S50000000mod 1000000007。
1π表示素数计数函数即 πn是质数≤n的素数。
# --hints--
`euler423()`应该返回653972374。
```js
assert.strictEqual(euler423(), 653972374);
```
# --seed--
## --seed-contents--
```js
function euler423() {
return true;
}
euler423();
```
# --solutions--
```js
// solution required
```