freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-152-writing-one-half-as-a-sum-of-inverse-squares.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* 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>
2021-01-12 19:31:00 -07:00

907 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4041000cf542c50ff17 问题152将一半写为倒数平方和 5 problem-152-writing-one-half-as-a-sum-of-inverse-squares

--description--

有几种方法可以使用不同的整数将数字1/2写成反平方和。

例如,可以使用数字{2,3,4,5,7,12,15,20,28,35}

实际上仅使用2到45之间的整数包括2和45完全可以通过三种方式来实现其余两种方式是{2,3,4,6,7,9,10,20,28,35,36,45 }和{2,3,4,6,7,9,12,15,28,30,35,36,45}。 使用2到80之间含2和80的不同整数有多少种方法可以将数字1/2写成反平方和

--hints--

euler152()</ code>应该返回301。

assert.strictEqual(euler152(), 301);

--seed--

--seed-contents--

function euler152() {

  return true;
}

euler152();

--solutions--

// solution required