freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-202-laserbeam.chine...

56 lines
1.3 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: 5900f4371000cf542c50ff49
challengeType: 5
title: 'Problem 202: Laserbeam'
videoUrl: ''
localeTitle: 问题202Laserbeam
---
## Description
<section id="description">三个镜子以等边三角形的形状排列,其反射表面指向内侧。在三角形的每个顶点处存在无穷小的间隙,激光束可以通过该间隙。 <p>标记顶点AB和C.有两种方式可以使激光束进入顶点C从11个表面反弹然后通过相同的顶点退出下面显示了一种方式;另一方面与此相反。 </p><p>有80840种方式激光束可以进入顶点C从1000001表面反弹然后通过相同的顶点退出。 </p><p>激光束在顶点C进入的方式有多少从12017639147表面反弹然后通过相同的顶点退出 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler202()</code>应返回1209002624。
testString: 'assert.strictEqual(euler202(), 1209002624, "<code>euler202()</code> should return 1209002624.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler202() {
// Good luck!
return true;
}
euler202();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>