freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-456-triangles-conta...

56 lines
1.2 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: 5900f5351000cf542c510047
challengeType: 5
videoUrl: ''
title: 问题456包含原点II的三角形
---
## Description
<section id="description">定义xn =1248n mod 32323 - 16161yn =8421n mod 30103 - 15051 Pn = {x1y1x2y2...xnyn} <p>例如P8 = { - 14913-6630 - 10161,56255226,118898340-1077815852-5203 - 15165,11295 - 1427-1449512407,1060}。 </p><p>设Cn是顶点在Pn中的三角形的数量其中包含内部的原点。 </p><p>示例C8= 20 C600= 8950634 C40 000= 2666610948988 </p><p>找到C2 000 000</p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler456()</code>应返回333333208685971500。
testString: assert.strictEqual(euler456(), 333333208685971500);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler456() {
// Good luck!
return true;
}
euler456();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>