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

53 lines
1.5 KiB
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: 5900f53d1000cf542c510050
title: 问题465极地多边形
challengeType: 5
videoUrl: ''
dashedName: problem-465-polar-polygons
---
# --description--
多边形的内核由一组点定义,整个多边形的边界是可见的。我们将极坐标多边形定义为多边形,其原点严格包含在其内核中。
对于此问题,多边形可以具有共线的连续顶点。但是,多边形仍然不能具有自相交,并且不能具有零面积。
例如,只有下面的第一个是极多边形(第二个,第三个和第四个的内核不严格包含原点,第五个根本没有内核):
请注意,第一个多边形有三个连续的共线顶点。
令Pn为极坐标多边形的数量使得顶点xy具有绝对值不大于n的整数坐标。
请注意,如果多边形具有不同的边集,即使它们包含相同的区域,也应该计为不同的多边形。例如,具有顶点\[0,00,31,13,0]的多边形与具有顶点\[0,00,3的多边形不同1,13,01,0]。
例如P1= 131P2= 1648531P3= 1099461296175P343mod 1 000 000 007 = 937293740。
求P713mod 1 000 000 007。
# --hints--
`euler465()`应该返回585965659。
```js
assert.strictEqual(euler465(), 585965659);
```
# --seed--
## --seed-contents--
```js
function euler465() {
return true;
}
euler465();
```
# --solutions--
```js
// solution required
```