Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-242-odd-triplets.chinese.md

56 lines
1.3 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: 5900f45f1000cf542c50ff71
challengeType: 5
title: 'Problem 242: Odd Triplets'
videoUrl: ''
localeTitle: 问题242奇数三胞胎
---
## Description
<section id="description">给定集合{1,2...n}我们将fnk定义为具有奇数元素之和的k元素子集的数量。例如f5,3= 4因为集合{1,2,3,4,5}有四个3元素子集具有奇数元素{1,2,4}{ 1,3,5}{2,3,4}和{2,4,5}。 <p>当所有三个值nk和fnk都是奇数时我们说它们产生奇数三元组[nkfnk]。 </p><p>正好有五个奇数三元组n≤10[1,1f1,1= 1][5,1f5,1= 3][5,5f 5,5= 1][9,1f9,1= 5]和[9,9f9,9= 1]。 </p><p> n≤1012有多少奇数三胞胎 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler242()</code>应该返回997104142249036700。
testString: 'assert.strictEqual(euler242(), 997104142249036700, "<code>euler242()</code> should return 997104142249036700.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler242() {
// Good luck!
return true;
}
euler242();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>