chore(i8n,learn): processed translations
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15047f2d90
commit
e5c44a3ae5
@ -1,18 +1,30 @@
|
||||
---
|
||||
id: 5900f53a1000cf542c51004c
|
||||
title: 问题461:几乎是Pi
|
||||
title: 'Problem 461: Almost Pi'
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
forumTopicId: 302136
|
||||
dashedName: problem-461-almost-pi
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
对于所有非负整数k,设fn(k)= ek / n-1。值得注意的是,f200(6)+ f200(75)+ f200(89)+ f200(226)= 3.141592644529 ...≈π。事实上,对于n = 200,它是fn(a)+ fn(b)+ fn(c)+ fn(d)形式的π的最佳近似值。设g(n)= a2 + b2 + c2 + d 2为a,b,c,d最小化错误:| fn(a)+ fn(b)+ fn(c)+ fn(d) - π| (其中| x |表示x的绝对值)。给出g(200)= 62 + 752 + 892 + 2262 = 64658.求g(10000)。
|
||||
Let fn(k) = ek/n - 1, for all non-negative integers k.
|
||||
|
||||
Remarkably, f200(6) + f200(75) + f200(89) + f200(226) = 3.141592644529… ≈ π.
|
||||
|
||||
In fact, it is the best approximation of π of the form fn(a) + fn(b) + fn(c) + fn(d) for n = 200.
|
||||
|
||||
Let g(n) = a2 + b2 + c2 + d 2 for a, b, c, d that minimize the error: | fn(a) + fn(b) + fn(c) + fn(d) - π|
|
||||
|
||||
(where |x| denotes the absolute value of x).
|
||||
|
||||
You are given g(200) = 62 + 752 + 892 + 2262 = 64658.
|
||||
|
||||
Find g(10000).
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler461()`应该返回159820276。
|
||||
`euler461()` should return 159820276.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler461(), 159820276);
|
||||
|
Reference in New Issue
Block a user