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
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: 5900f4361000cf542c50ff48
title: 问题201具有唯一总和的子集
challengeType: 5
videoUrl: ''
dashedName: problem-201-subsets-with-a-unique-sum
---
# --description--
对于任何数字集A让sumA为A的元素之和。考虑集合B = {1,3,6,8,10,11}。 B的20个子集包含三个元素它们的总和是
sum{1,3,6}= 10sum{1,3,8}= 12sum{1,3,10}= 14sum{1,3,11}= 15sum{1,6,8}= 15sum{1,6,10}= 17sum{1,6,11}= 18sum{1,8,10} = 19sum{1,8,11}= 20sum{1,10,11}= 22sum{3,6,8}= 17sum{3,6 10}= 19sum{3,6,11}= 20sum{3,8,10}= 21sum{3,8,11}= 22sum{3 10,11}= 24sum{6,8,10}= 24sum{6,8,11}= 25sum{6,10,11}= 27sum{ 8,10,11}= 29。
其中一些总和不止一次出现有些则是独一无二的。对于集合A设UAk是A的k元素子集的唯一和的集合在我们的例子中我们发现UB3= {10,12,14,18,21,25 27,29}和和UB3= 156。
现在考虑100个元素集S = {12,22...1002}。 S具有100891344545564193334812497256 50个元素子集。
确定所有整数的和它们是S的50个元素子集中的一个的总和即求和US50
# --hints--
`euler201()`应返回115039000。
```js
assert.strictEqual(euler201(), 115039000);
```
# --seed--
## --seed-contents--
```js
function euler201() {
return true;
}
euler201();
```
# --solutions--
```js
// solution required
```