Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-310-nim-square.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

1018 B
Raw Blame History

id, challengeType, videoUrl, title
id challengeType videoUrl title
5900f4a21000cf542c50ffb5 5 问题310尼姆广场

Description

爱丽丝和鲍勃玩游戏Nim Square。 Nim Square就像普通的三堆普通游戏Nim一样但是玩家只能从堆中取出一平方的石头。 三个堆中的石头数量由有序三元组abc表示。 如果0≤a≤b≤c≤29则下一个玩家的失落位数为1160。

如果0≤a≤b≤c≤100000则查找下一个玩家的失落位置数。

Instructions

Tests

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

Challenge Seed

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

euler310();

Solution

// solution required

/section>