* 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>
1.4 KiB
1.4 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f4cd1000cf542c50ffe0 | 问题353:危险的月亮 | 5 | problem-353-risky-moon |
--description--
月球可以由球体C(r)描述,其中心(0,0,0)和半径r。
月球上有C(r)表面点上的整数坐标。 (0,0,r)处的站称为北极站,(0,0,-r)处的站称为南极站。
所有车站都通过车站的大弧上最短的道路相互连接。两个站之间的旅程是有风险的。如果d是两个站之间的道路长度,(d /(πr))2是旅程风险的度量(让我们称之为道路风险)。如果旅程包括两个以上的车站,则旅程的风险是使用过的道路的风险总和。
从北极站到南极站的直接旅程长度为πr,风险为1.从北极站到南极站的路程(0,r,0)长度相同,但风险较小:(½πr/(πr))2+(1 /2πr/(πr))2 = 0.5。
从C(r)的北极站到南极站的旅程的最小风险是M(r)。
给出M(7)= 0.1784943998四舍五入到小数点后面的10位数。
找到ΣM(2n-1)为1≤n≤15。
将答案四舍五入到小数点后面的10位数,形式为a.bcdefghijk。
--hints--
euler353()
应返回1.2759860331。
assert.strictEqual(euler353(), 1.2759860331);
--seed--
--seed-contents--
function euler353() {
return true;
}
euler353();
--solutions--
// solution required