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

793 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4111000cf542c50ff23 問題 164: 3 つの連続桁の和がいずれも所与の値以下であるような数 5 301798 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 を返す必要があります。

assert.strictEqual(consecutiveDigitsSum(), 378158756814587);

--seed--

--seed-contents--

function consecutiveDigitsSum() {

  return true;
}

consecutiveDigitsSum();

--solutions--

// solution required