* 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>
43 lines
812 B
Markdown
43 lines
812 B
Markdown
---
|
||
id: 5900f4e51000cf542c50fff8
|
||
title: 问题377:数字之和,经验13
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-377-sum-of-digits-experience-13
|
||
---
|
||
|
||
# --description--
|
||
|
||
有16个正整数,它们的数字没有零,并且数字和等于5,即:5,14,23,32,41,113,122,131,212,221,311,1112, 1121年,1211年,2111年和1111年。他们的总和是17891。
|
||
|
||
设f(n)为所有正整数的和,它们的数字不为零,数字和等于n。
|
||
|
||
找到$ \\ displaystyle \\ sum\_ {i = 1} ^ {17} f(13 ^ i)$。将最后9位数字作为答案。
|
||
|
||
# --hints--
|
||
|
||
`euler377()`应该返回732385277。
|
||
|
||
```js
|
||
assert.strictEqual(euler377(), 732385277);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler377() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler377();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|