56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
|
---
|
|||
|
id: 5900f4311000cf542c50ff43
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 195: Inscribed circles of triangles with one angle of 60 degrees'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 问题195:内切三角形的圆形,一个角度为60度
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description">让我们称一个整数边三角形,其中一个角度为60度,一个60度的三角形。设r是这样的60度三角形的内切圆的半径。有1234个60度三角形,其中r≤100。设T(n)是60度三角形的数量,其中r≤n,因此T(100)= 1234,T(1000)= 22767,和T( 10000)= 359912。 <p>找到T(1053779)。 </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler195()</code>应返回75085391。
|
|||
|
testString: 'assert.strictEqual(euler195(), 75085391, "<code>euler195()</code> should return 75085391.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler195() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler195();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|