Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-312-cyclic-paths-on-sierpiski-graphs.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
5900f4a51000cf542c50ffb7 5 Problem 312: Cyclic paths on Sierpiński graphs 问题312Sierpiński图上的循环路径

Description

-1阶S1的Sierpiński图是等边三角形。 -通过将Sn的三个副本放置在Sn上从而使每对副本都有一个公共角从而从Sn中获得Sn +1。

令Cn为恰好一次通过Sn的所有顶点的循环数。 例如C3= 8因为可以在S3上绘制八个这样的循环如下所示

也可以验证: C1= C2= 1 C5= 71328803586048 C10,000mod 108 = 37652224 C10,000模138 = 617720485

求CCC10,000mod 138。

Instructions

Tests

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

Challenge Seed

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

euler312();

Solution

// solution required