Files
gikf 32dbe23f5e fix(curriculum): clean-up Project Euler 301-320 (#42926)
* fix: clean-up Project Euler 301-320

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-21 17:59:56 +02:00

893 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4a21000cf542c50ffb5 Problem 310: Nim Square 5 301966 problem-310-nim-square

--description--

Alice and Bob play the game Nim Square.

Nim Square is just like ordinary three-heap normal play Nim, but the players may only remove a square number of stones from a heap.

The number of stones in the three heaps is represented by the ordered triple (a, b, c).

If 0 ≤ a ≤ b ≤ c ≤ 29 then the number of losing positions for the next player is 1160.

Find the number of losing positions for the next player if 0 ≤ a ≤ b ≤ c ≤ 100\\,000.

--hints--

nimSquare() should return 2586528661783.

assert.strictEqual(nimSquare(), 2586528661783);

--seed--

--seed-contents--

function nimSquare() {

  return true;
}

nimSquare();

--solutions--

// solution required