56 lines
998 B
Markdown
56 lines
998 B
Markdown
|
---
|
|||
|
id: 5900f3a41000cf542c50feb7
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 56: Powerful digit sum'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 问题56:强大的数字总和
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> googol(10100)是一个庞大的数字:一个跟着一百个零; 100100几乎是难以想象的大:一个跟着两百个零。尽管它们的大小,每个数字的数字之和仅为1.考虑到形式的自然数,ab,其中a,b <100,最大数字和是多少? </section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler56()</code>应返回972。
|
|||
|
testString: 'assert.strictEqual(euler56(), 972, "<code>euler56()</code> should return 972.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler56() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler56();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|