Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-164-numbers-for-which-no-three-consecutive-digits-have-a-sum-greater-than-a-given-value.md
2022-01-20 20:30:18 +01:00

41 lines
793 B
Markdown

---
id: 5900f4111000cf542c50ff23
title: >-
問題 164: 3 つの連続桁の和がいずれも所与の値以下であるような数
challengeType: 5
forumTopicId: 301798
dashedName: >-
problem-164-numbers-for-which-no-three-consecutive-digits-have-a-sum-greater-than-a-given-value
---
# --description--
$n$ の 3 つの連続桁の和がいずれも 9 以下であるような、20 桁の数 $n$ (先行ゼロなし) はいくつありますか。
# --hints--
`consecutiveDigitsSum()``378158756814587` を返す必要があります。
```js
assert.strictEqual(consecutiveDigitsSum(), 378158756814587);
```
# --seed--
## --seed-contents--
```js
function consecutiveDigitsSum() {
return true;
}
consecutiveDigitsSum();
```
# --solutions--
```js
// solution required
```