chore(i18n,learn): processed translations (#45313)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4ca1000cf542c50ffdc
|
||||
title: 'Problem 349: Langton''s ant'
|
||||
title: 'Problema 349: Formica di Langton'
|
||||
challengeType: 5
|
||||
forumTopicId: 302008
|
||||
dashedName: problem-349-langtons-ant
|
||||
@ -8,22 +8,21 @@ dashedName: problem-349-langtons-ant
|
||||
|
||||
# --description--
|
||||
|
||||
An ant moves on a regular grid of squares that are coloured either black or white.
|
||||
Una formica si muove su una griglia regolare di quadrati colorati neri o bianchi.
|
||||
|
||||
The ant is always oriented in one of the cardinal directions (left, right, up or down) and moves from square to adjacent square according to the following rules:
|
||||
La formica è sempre orientata in una delle direzioni cardinali (sinistra, destra, su o giù) e si sposta da un quadrato al quadrato adiacente secondo le seguenti regole:
|
||||
|
||||
\- if it is on a black square, it flips the color of the square to white, rotates 90 degrees counterclockwise and moves forward one square.
|
||||
- se è su un quadrato nero, capovolge il colore del quadrato a bianco, ruota 90° in senso antiorario e si muove in avanti di un quadrato.
|
||||
- se è su un quadrato bianco, capovolge il colore del quadrato a nero, ruota 90° in senso orario e si muove in avanti di un quadrato.
|
||||
|
||||
\- if it is on a white square, it flips the color of the square to black, rotates 90 degrees clockwise and moves forward one square.
|
||||
|
||||
Starting with a grid that is entirely white, how many squares are black after 10<sup>18</sup> moves of the ant?
|
||||
A partire da una griglia completamente bianca, quanti quadrati sono neri dopo ${10}^{18}$ mosse della formica?
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler349()` should return 115384615384614940.
|
||||
`langtonsAnt()` dovrebbe restituire `115384615384614940`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler349(), 115384615384614940);
|
||||
assert.strictEqual(langtonsAnt(), 115384615384614940);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -31,12 +30,12 @@ assert.strictEqual(euler349(), 115384615384614940);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler349() {
|
||||
function langtonsAnt() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler349();
|
||||
langtonsAnt();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user