freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-324-building-a-towe...

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4b11000cf542c50ffc3 5 Problem 324: Building a tower 问题324建造一座塔楼

Description

设fn表示用2×1×1的块填充3×3×n塔的方式的数量。你可以以任何你喜欢的方式旋转块;然而塔本身的旋转反射等被视为不同的。例如q = 100000007f2= 229f4= 117805f10mod q = 96149360f103mod q = 24806056f106mod q = 30808124。

求f1010000mod 100000007。

Instructions

Tests

tests:
  - text: <code>euler324()</code>应该返回96972774。
    testString: 'assert.strictEqual(euler324(), 96972774, "<code>euler324()</code> should return 96972774.");'

Challenge Seed

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

euler324();

Solution

// solution required