freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-33-digit-cancelling...

56 lines
1.3 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: 5900f38d1000cf542c50fea0
challengeType: 5
videoUrl: ''
title: 问题33数字取消分数
---
## Description
<section id="description">分数<sup><sub>九十八分之四十九</sub></sup>是好奇馏分,如在试图简化它可能会错误地认为<sup><sub>九十八分之四十九</sub></sup> = <sup><sub>4/8</sub></sup>这是正确的则通过取消787-9获得一个没有经验的数学家。我们应考虑馏分喜欢 <sup><sub>五十○分之三十○=</sub></sup> <sup><sub>3/5</sub></sup>是微不足道的例子。这种类型的分数恰好有四个非平凡的例子,小于一个值,并且在分子和分母中包含两个数字。如果这四个分数的乘积以其最低公共项给出,请找到分母的值。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>digitCancellingFractions()</code>应该返回100。
testString: assert.strictEqual(digitCancellingFractions(), 100);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function digitCancellingFractions() {
// Good luck!
return true;
}
digitCancellingFractions();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>