freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-456-triangles-containing-the-origin-ii.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

47 lines
972 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5351000cf542c510047
title: 问题456包含原点II的三角形
challengeType: 5
videoUrl: ''
dashedName: problem-456-triangles-containing-the-origin-ii
---
# --description--
定义xn =1248n mod 32323 - 16161yn =8421n mod 30103 - 15051 Pn = {x1y1x2y2...xnyn}
例如P8 = { - 14913-6630 - 10161,56255226,118898340-1077815852-5203 - 15165,11295 - 1427-1449512407,1060}。
设Cn是顶点在Pn中的三角形的数量其中包含内部的原点。
示例C8= 20 C600= 8950634 C40 000= 2666610948988
找到C2 000 000
# --hints--
`euler456()`应返回333333208685971500。
```js
assert.strictEqual(euler456(), 333333208685971500);
```
# --seed--
## --seed-contents--
```js
function euler456() {
return true;
}
euler456();
```
# --solutions--
```js
// solution required
```