freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-191-prize-strings.c...

56 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f42b1000cf542c50ff3e
challengeType: 5
title: 'Problem 191: Prize Strings'
videoUrl: ''
localeTitle: 问题191奖品串
---
## Description
<section id="description">特定学校为出勤和准时良好的儿童提供现金奖励。如果他们连续三天缺席或者不止一次缺席,那么他们将丧失奖品。 <p>在n天期间为每个孩子形成三个字符串包括L&#39;sO按时和A&#39;(缺席)。 </p><p>虽然可以形成为期4天的八十三个三弦组但恰好有四十三个弦可以获得奖品 </p><p> OOOO OOOA OOOL OOAO OOAA OOAL OOLO OOLA OAOO OAOA OAOL OAAO OAAL OALO OALA OLOO OLOA OLAO OLAA AOOO AOOA AOOL AOAO AOAA AOO AOLA AOLA AAOO AAOA AAOL AALO AALA ALOO ALOA ALAO ALAA LOOO LOOA LOAO LOAA LAOO LAOA LAAO </p><p>在30天内存在多少“奖品”字符串 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler191()</code>应该返回1918080160。
testString: 'assert.strictEqual(euler191(), 1918080160, "<code>euler191()</code> should return 1918080160.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler191() {
// Good luck!
return true;
}
euler191();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>