Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-294-sum-of-digits---experience-23.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

1.0 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4931000cf542c50ffa5 5 Problem 294: Sum of digits - experience #23 问题294数字总和-经验23

Description

对于正整数k将dk定义为通常的十进制表示形式中k的位数之和。 因此d42= 4 + 2 = 6。

对于正整数n将Sn定义为具有以下属性的正整数k <10n的数量 k可被23整除 dk= 23。

给出S9= 263626和S42= 6377168878570056。

找到S1112并给出答案mod 109。

Instructions

Tests

tests:
  - text: <code>euler294()</code>应该返回789184709。
    testString: assert.strictEqual(euler294(), 789184709);

Challenge Seed

function euler294() {
  // Good luck!
  return true;
}

euler294();

Solution

// solution required

/section>