Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-254-sums-of-digit-factorials.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
953 B
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: 5900f46b1000cf542c50ff7d
title: 问题254数字因子的总和
challengeType: 5
videoUrl: ''
dashedName: problem-254-sums-of-digit-factorials
---
# --description--
将fn定义为n的数字的阶乘的总和。例如f342= 3 + 4 + 2 = 32。
将sfn定义为fn的数字之和。所以sf342= 3 + 2 = 5。
将gi定义为最小的正整数n使得sfn= i。虽然sf342是5但sf25也是5并且可以证实g5是25。
将sgi定义为gi的数字之和。所以sg5= 2 + 5 = 7。
此外可以证实g20是267并且1≤i≤20的Σsgi是156。
什么是Σsgi1≤i≤150
# --hints--
`euler254()`应该返回8184523820510。
```js
assert.strictEqual(euler254(), 8184523820510);
```
# --seed--
## --seed-contents--
```js
function euler254() {
return true;
}
euler254();
```
# --solutions--
```js
// solution required
```