freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-471-triangle-inscribed-in-ellipse.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

1.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f5431000cf542c510056 问题471以椭圆形刻的三角形 5 problem-471-triangle-inscribed-in-ellipse

--description--

三角形ΔABC刻在椭圆中方程为$ \ frac {x ^ 2} {a ^ 2} + \ frac {y ^ 2} {b ^ 2} = 1 0 &lt;2b &lt;aa和b整数。设rab为内圆2b0时A的圆周半径A有坐标 \ left\ frac a 2\ frac {\ sqrt 3} 2 b \ right $。例如r3,1= 1/2r6,2= 1r12,3= 2。

设$ Gn= \ sum {a = 3} ^ n \ sum {b = 1} ^ {\ lfloor \ frac {a - 1} 2 \ rfloor} rab$给你G 10= 20.59722222G100= 19223.60980舍入为10位有效数字。找到G1011。以科学计数法给出答案四舍五入到10位有效数字。使用小写e分隔尾数和指数。对于G10答案应该是2.059722222e1。

--hints--

euler471()应返回1.895093981e + 31。

assert.strictEqual(euler471(), 1.895093981e31);

--seed--

--seed-contents--

function euler471() {

  return true;
}

euler471();

--solutions--

// solution required