* 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>
45 lines
666 B
Markdown
45 lines
666 B
Markdown
---
|
||
id: 5900f49b1000cf542c50ffae
|
||
title: 问题303:小数的倍数
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-303-multiples-with-small-digits
|
||
---
|
||
|
||
# --description--
|
||
|
||
对于正整数n,将f(n)定义为n的最小正整数,以10为底的数字只能使用≤2的数字。
|
||
|
||
因此,f(2)= 2,f(3)= 12,f(7)= 21,f(42)= 210,f(89)= 1121222。
|
||
|
||
另外,。
|
||
|
||
找 。
|
||
|
||
# --hints--
|
||
|
||
`euler303()`应该返回1111981904675169。
|
||
|
||
```js
|
||
assert.strictEqual(euler303(), 1111981904675169);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler303() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler303();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|