56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
---
|
||
id: 5900f38d1000cf542c50fea0
|
||
challengeType: 5
|
||
title: 'Problem 33: Digit cancelling fractions'
|
||
videoUrl: ''
|
||
localeTitle: 问题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, "<code>digitCancellingFractions()</code> should return 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>
|