chore(i18n,learn): processed translations (#45287)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4511000cf542c50ff63
|
||||
title: 'Problem 228: Minkowski Sums'
|
||||
title: 'Problem 228: Somme di Minkowski'
|
||||
challengeType: 5
|
||||
forumTopicId: 301871
|
||||
dashedName: problem-228-minkowski-sums
|
||||
@ -8,34 +8,26 @@ dashedName: problem-228-minkowski-sums
|
||||
|
||||
# --description--
|
||||
|
||||
<!-- TODO Use MathJax and re-write from projecteuler.net -->
|
||||
Sia $S_n$ il poligono regolare a $n$ lati i cui vertici $v_k (k = 1, 2, \ldots, n)$ hanno coordinate:
|
||||
|
||||
Let Sn be the regular n-sided polygon – or shape – whose vertices
|
||||
$$\begin{align} & x_k = cos(\frac{2k - 1}{n} × 180°) \\\\ & y_k = sin(\frac{2k - 1}{n} × 180°) \end{align}$$
|
||||
|
||||
vk (k = 1,2,…,n) have coordinates:
|
||||
Ogni $S_n$ è da considerarsi come una forma riempita consistente di tutti i punti sia del perimetro che dell'interno.
|
||||
|
||||
xk = cos( 2k-1/n ×180° )
|
||||
La somma di Minkowski, $S + T$, di due figure $S$ e $T$ è il risultato di sommare ogni punto in $S$ con ogni punto in $T$ dove l'addizione dei punti è fatta sulla base delle coordinate: $(u, v) + (x, y) = (u + x, v + y)$.
|
||||
|
||||
yk = sin( 2k-1/n ×180° )
|
||||
Per esempio, la somma di $S_3$ e $S_4$ è la forma a 6 lati mostrata in rosa qui sotto:
|
||||
|
||||
Each Sn is to be interpreted as a filled shape consisting of all points on the perimeter and in the interior.
|
||||
<img class="img-responsive center-block" alt="immagine che mostra S_3, S_4 e S_3 + S_4" src="https://cdn.freecodecamp.org/curriculum/project-euler/minkowski-sums.png" style="background-color: white; padding: 10px;" />
|
||||
|
||||
The Minkowski sum, S+T, of two shapes S and T is the result of
|
||||
|
||||
adding every point in S to every point in T, where point addition is performed coordinate-wise:
|
||||
|
||||
(u, v) + (x, y) = (u+x, v+y).
|
||||
|
||||
For example, the sum of S3 and S4 is the six-sided shape shown in pink below:
|
||||
|
||||
How many sides does S1864 + S1865 + … + S1909 have?
|
||||
Quanti lati ha $S_{1864} + S_{1865} + \ldots + S_{1909}$?
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler228()` should return 86226.
|
||||
`minkowskiSums()` dovrebbe restituire `86226`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler228(), 86226);
|
||||
assert.strictEqual(minkowskiSums(), 86226);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -43,12 +35,12 @@ assert.strictEqual(euler228(), 86226);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler228() {
|
||||
function minkowskiSums() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler228();
|
||||
minkowskiSums();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user