* 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
803 B
Markdown
43 lines
803 B
Markdown
---
|
||
id: 5900f4c81000cf542c50ffdb
|
||
title: 问题348:正方形和立方体的总和
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-348-sum-of-a-square-and-a-cube
|
||
---
|
||
|
||
# --description--
|
||
|
||
许多数字可以表示为正方形和立方体的总和。其中一些不止一种。
|
||
|
||
考虑可以用4种不同方式表示为正方形和立方体之和的回文数,均大于1。例如,5229225是一个回文数字,它可以用4种不同的方式表示:22852 + 203 22232 + 663 18102 + 1253 11972 + 1563
|
||
|
||
找出五个最小的这种回文数的总和。
|
||
|
||
# --hints--
|
||
|
||
`euler348()`应返回1004195061。
|
||
|
||
```js
|
||
assert.strictEqual(euler348(), 1004195061);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler348() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler348();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|