freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-236-luxury-hampers....

56 lines
1.8 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: 5900f4591000cf542c50ff6b
challengeType: 5
title: 'Problem 236: Luxury Hampers'
videoUrl: ''
localeTitle: 问题236豪华礼篮
---
## Description
<section id="description">供应商&#39;A&#39;&#39;B&#39;为奢侈品篮子市场提供以下数量的产品: <p> Product&#39;A“B&#39;Beluga Caviar5248640Christmas Cake13121888Gammon Joint26243776Vintage Port57603776Champagne Truffles39365664 </p><p>虽然供应商非常努力地将货物运送到完美的状态,但不可避免地会有一些变质 - 即产品变坏了。 </p><p>供应商使用两种类型的统计数据来比较他们的表现:每个供应商的五个每个产品的腐败率等于坏的产品数量除以供应的产品数量,依次为五个产品中的每一个。每个供应商的整体腐败率等于坏的产品总数除以该供应商提供的产品总数。令他们惊讶的是,供应商发现五种每种产品的腐败率都更差(更高) )对于&#39;B&#39;而不是&#39;A&#39;由相同的因子腐败率的比率m&gt; 1;然而,矛盾的是,&#39;A&#39;的整体腐败率比&#39;B&#39;更差也是m倍。 </p><p>有三十五米&gt; 1这个惊人的结果可能会发生其中最小的是1476/1475。 </p><p> m的最大可能值是多少以u / v的形式将答案缩小到最低值。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler236()</code>应返回<code>euler236()</code> 。
testString: 'assert.strictEqual(euler236(), 123 / 59, "<code>euler236()</code> should return 123 / 59.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler236() {
// Good luck!
return true;
}
euler236();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>