56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
---
|
||
id: 5900f41e1000cf542c50ff30
|
||
challengeType: 5
|
||
title: 'Problem 177: Integer angled Quadrilaterals'
|
||
videoUrl: ''
|
||
localeTitle: 问题177:整数角四边形
|
||
---
|
||
|
||
## Description
|
||
<section id="description">设ABCD为凸四边形,对角线为AC和BD。在每个顶点处,对角线与两侧中的每一侧形成一个角度,从而产生八个角度角。 <p>例如,在顶点A处,两个角度是CAD,CAB。我们称之为四边形,当以“整角四边形”度数度量时,所有八个角度角都具有整数值。整数角度四边形的示例是正方形,其中所有八个角度角都是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>
|