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

49 lines
1.2 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: 5900f4691000cf542c50ff7b
title: 问题252凸孔
challengeType: 5
videoUrl: ''
dashedName: problem-252-convex-holes
---
# --description--
给定平面上的一组点,我们将凸孔定义为凸多边形,其具有作为顶点的任何给定点并且不包含其内部中的任何给定点(除了顶点之外,其他给定点可能位于在多边形的周长上)。
作为示例下面的图像示出了一组二十个点和一些这样的凸孔。显示为红色七边形的凸孔具有等于1049694.5平方单位的面积,这是给定点集上的凸孔的最高可能区域。
对于我们的例子我们使用前20个点T2k-1T2k对于k = 1,2...20使用伪随机数生成器生成
S0 = 290797 Sn + 1 = Sn2 mod 50515093 Tn =Sn mod 2000-1000
527,144 - 488,732 - 454-947......
包含伪随机序列中前500个点的集合上凸孔的最大面积是多少指定您的答案包括小数点后的一位数。
# --hints--
`euler252()`应该返回104924。
```js
assert.strictEqual(euler252(), 104924);
```
# --seed--
## --seed-contents--
```js
function euler252() {
return true;
}
euler252();
```
# --solutions--
```js
// solution required
```