Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-198-ambiguous-numbers.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

43 lines
963 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4331000cf542c50ff45
title: 问题198模糊数字
challengeType: 5
videoUrl: ''
dashedName: problem-198-ambiguous-numbers
---
# --description--
对于分母界限d的实数x的最佳近似是有理数r / s以简化形式其中s≤d因此任何比r更接近x的有理数p / q具有q> d。
通常对于所有分母边界唯一确定对实数的最佳近似。但是有一些例外例如9/40对分母界限6具有两个最佳近似值1/4和1/5。如果至少有一个分母绑定为x拥有我们将称为实数x不明确两个最佳近似值。显然模糊的数字必然是理性的。
有多少个模糊数x = p / q,0 &lt;x &lt;1/100其分母q是否不超过108
# --hints--
`euler198()`应该返回52374425。
```js
assert.strictEqual(euler198(), 52374425);
```
# --seed--
## --seed-contents--
```js
function euler198() {
return true;
}
euler198();
```
# --solutions--
```js
// solution required
```