chore(i18n,learn): processed translations (#44851)

This commit is contained in:
camperbot
2022-01-21 01:00:18 +05:30
committed by GitHub
parent f866718a3d
commit 5c868af2b8
1696 changed files with 159426 additions and 69 deletions

View File

@ -0,0 +1,45 @@
---
id: 5900f4ca1000cf542c50ffdc
title: 'Problem 349: Langton''s ant'
challengeType: 5
forumTopicId: 302008
dashedName: problem-349-langtons-ant
---
# --description--
An ant moves on a regular grid of squares that are coloured either black or white.
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:
- if it is on a black square, it flips the color of the square to white, rotates 90° counterclockwise and moves forward one square.
- if it is on a white square, it flips the color of the square to black, rotates 90° clockwise and moves forward one square.
Starting with a grid that is entirely white, how many squares are black after ${10}^{18}$ moves of the ant?
# --hints--
`langtonsAnt()` should return `115384615384614940`.
```js
assert.strictEqual(langtonsAnt(), 115384615384614940);
```
# --seed--
## --seed-contents--
```js
function langtonsAnt() {
return true;
}
langtonsAnt();
```
# --solutions--
```js
// solution required
```