Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-237-tours-on-a-4-x-n-playing-board.md
2022-01-20 20:30:18 +01:00

1.2 KiB
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4591000cf542c50ff6c 問題 237: 4 × n のゲーム盤上の経路 5 301882 problem-237-tours-on-a-4-x-n-playing-board

--description--

次のようなルールがあるゲームについて、4 × n のゲーム盤上を進む経路の数を T(n) とします。

  • 左上隅のマスから始める。
  • 上下左右に 1 マスずつ移動する。
  • 各マスをちょうど 1 回ずつ通る。
  • 左下隅のマスで終わる。

下図は、4 × 10 の盤上での経路の一例です。

4 × 10 の盤上の経路の一例

T(10) は 2329 です。 T({10}^{12}) mod {10}^8 を求めなさい。

--hints--

toursOnPlayingBoard()15836928 を返す必要があります。

assert.strictEqual(toursOnPlayingBoard(), 15836928);

--seed--

--seed-contents--

function toursOnPlayingBoard() {

  return true;
}

toursOnPlayingBoard();

--solutions--

// solution required