freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-475-music-festival....

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f5481000cf542c51005a 5 Problem 475: Music festival 问题475音乐节

Description

12n音乐家参加音乐节。在第一天他们形成3n四重奏并整日练习。这是一场灾难。在一天结束时所有音乐家都决定再也不会同意与他们四重奏的任何成员一起玩。在第二天他们形成4n三人组每个音乐家都避开他以前的四重奏伙伴。

设f12n是在12n音乐家中组织三人组合的方式。给出f12= 576和f24mod 1 000 000 007 = 509089824。

求f600mod 1 000 000 007。

Instructions

Tests

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

Challenge Seed

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

euler475();

Solution

// solution required