Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-313-sliding-game.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.2 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4a61000cf542c50ffb8 5 Problem 313: Sliding game 问题313滑行游戏

Description

在滑动游戏中,柜台可以水平或垂直滑入一个空白区域。 游戏的目的是将红色计数器从网格的左上角移至右下角。 该空间始终始于右下角。 例如以下图片序列显示了如何在2 x 2网格上进行5次移动才能完成游戏。

令Smn代表完成游戏的最小移动次数。 例如可以验证S5.4= 25。

正好有5482个网格其中Smn= p2其中p <100是质数。

Smn= p2有多少个网格其中p <106是素数

Instructions

Tests

tests:
  - text: <code>euler313()</code>应该返回2057774861813004。
    testString: assert.strictEqual(euler313(), 2057774861813004);

Challenge Seed

function euler313() {
  // Good luck!
  return true;
}

euler313();

Solution

// solution required