Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-171-finding-numbers-for-which-the-sum-of-the-squares-of-the-digits-is-a-square.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.0 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4181000cf542c50ff2a 5 Problem 171: Finding numbers for which the sum of the squares of the digits is a square 问题171找到数字的平方和为正方形的数字

Description

对于正整数n令fn为n的数字在基数10中的平方和例如f3= 32 = 9f25= 22 + 52 = 4 + 25 = 29f442= 42 + 42 + 22 = 16 + 16 + 4 = 36找到所有n的总和的最后九位数0 <n <1020使得fn是一个完美的平方。

Instructions

Tests

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

Challenge Seed

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

euler171();

Solution

// solution required