* 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.3 KiB
1.3 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f4731000cf542c50ff85 | 问题262:山脉 | 5 | problem-262-mountain-range |
--description--
以下等式表示山区的连续地形,给出任意点(x,y)处的高程h:
蚊子打算从A(200,200)飞到B(1400,1400),而不会离开0≤x,y≤1600的区域。
由于中间的山脉,它首先直线上升到A'点,具有高度f。然后,在保持在相同高度f的同时,它在任何障碍物周围飞行,直到它到达B正上方的B'点。
首先,确定fmin,它是允许从A到B的这种行程的最小恒定高度,同时保持在指定区域。然后,找到A'和B'之间最短路径的长度,同时以恒定高度fmin飞行。
将该长度作为答案,四舍五入到小数点后三位。
注意:为方便起见,下面以适合大多数编程语言的形式重复上面显示的高程函数:h =(5000-0.005 (x x + y y + x y)+12.5 (x + y)) exp( - abs(0.000001 (x x + y y)-0.0015 (x + y)+0.7))
--hints--
euler262()
应返回2531.205。
assert.strictEqual(euler262(), 2531.205);
--seed--
--seed-contents--
function euler262() {
return true;
}
euler262();
--solutions--
// solution required