Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.5 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3c61000cf542c50fed9 问题90立方体数字对 5 problem-90-cube-digit-pairs

--description--

立方体上的六个面中的每一个都有一个写在其上的不同数字0到9;第二个立方体也是如此。通过将两个立方体并排放置在不同的位置我们可以形成各种2位数字。

例如可以形成平方数64

实际上通过仔细选择两个立方体上的数字可以显示低于100的所有正方形数字01,04,09,16,25,36,49,64和81。

例如,可以实现的一种方法是将{0,5,6,7,8,9}放在一个立方体上,将{1,2,3,4,8,9}放在另一个立方体上。

但是对于这个问题我们应该允许将6或9颠倒以便安排像{0,5,6,7,8,9}和{1,2,3,4,6,7}允许显示所有九个方形数字;否则就不可能获得09。

在确定不同的排列时,我们对每个立方体上的数字感兴趣,而不是订单。

{1,2,3,4,5,6}相当于{3,6,4,1,2,5} {1,2,3,4,5,6}不同于{1,2 3,4,5,9}

但是因为我们允许反转6和9所以最后一个例子中的两个不同的集合都代表扩展集{1,2,3,4,5,6,9}以形成2位数字。

两个立方体有多少不同的排列可以显示所有的方形数字?

--hints--

euler90()应该返回1217。

assert.strictEqual(euler90(), 1217);

--seed--

--seed-contents--

function cubeDigitPairs() {

  return true;
}

cubeDigitPairs();

--solutions--

// solution required