freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-177-integer-angled-...

56 lines
1.4 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: 5900f41e1000cf542c50ff30
challengeType: 5
title: 'Problem 177: Integer angled Quadrilaterals'
videoUrl: ''
localeTitle: 问题177整数角四边形
---
## Description
<section id="description">设ABCD为凸四边形对角线为AC和BD。在每个顶点处对角线与两侧中的每一侧形成一个角度从而产生八个角度角。 <p>例如在顶点A处两个角度是CADCAB。我们称之为四边形当以“整角四边形”度数度量时所有八个角度角都具有整数值。整数角度四边形的示例是正方形其中所有八个角度角都是45°。另一个例子是DAC = 20°BAC = 60°ABD = 50°CBD = 30°BCA = 40°DCA = 30°CDB = 80°ADB = 50°。非相似整数角度四边形的总数是多少注意在计算中如果计算出的角度在整数值的10-9范围内则可以假定计算出的角度是整数。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler177()</code>应返回129325。
testString: 'assert.strictEqual(euler177(), 129325, "<code>euler177()</code> should return 129325.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler177() {
// Good luck!
return true;
}
euler177();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>