55 lines
1.4 KiB
Markdown
55 lines
1.4 KiB
Markdown
---
|
||
id: 5900f4de1000cf542c50fff0
|
||
challengeType: 5
|
||
title: 'Problem 369: Badugi'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 369: Бадуги'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> В стандартной 52 колоде карт игральных карт набор из 4 карт - это Бадуги, если он содержит 4 карты без пар и две карты одного и того же костюма. <p> Пусть f (n) - количество способов выбора n карт с 4-карточным подмножеством, которое является Badugi. Например, существует 2598960 способов выбрать пять карт из стандартной колоды из 52 карт, из которых 514800 содержат 4 подмножества карт, которые являются Badugi, поэтому f (5) = 514800. </p><p> Найти Σf (n) для 4 ≤ n ≤ 13. </p></section>
|
||
|
||
## Instructions
|
||
undefined
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: ''
|
||
testString: 'assert.strictEqual(euler369(), 862400558448, "<code>euler369()</code> should return 862400558448.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler369() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler369();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|