freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-317-firecracker.md

65 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4aa1000cf542c50ffbc
challengeType: 5
videoUrl: ''
localeTitle: 问题317鞭炮
---
## Description
<section id="description">
爆竹在离地面100 m的高度处爆炸。 它分为许多非常小的碎片,它们向各个方向移动。 它们都具有相同的初始速度20 m / s。
我们假设碎片在没有空气阻力的情况下在g = 9.81 m / s2的均匀重力场中运动。
找到碎片到达地面之前通过的区域的体积单位m3
将答案四舍五入到小数点后四位。
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler317()</code>应该返回1856532.8455。
testString: assert.strictEqual(euler317(), 1856532.8455);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler317() {
// Good luck!
return true;
}
euler317();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>