freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-369-badugi.md

638 B
Raw Blame History

id title challengeType videoUrl
5900f4de1000cf542c50fff0 问题369Badugi 5

--description--

在标准的52张扑克牌中一套4张牌是Badugi如果它包含4张没有成对的牌而没有两张相同牌的牌。

设fn是选择n卡的方式的数量其中4卡的子集是Badugi。例如有2598960种方法可以从标准的52卡片组中选择5张卡片其中514800包含4个卡片子集这是Badugi因此f5= 514800。

找到Σfn为4≤n≤13。

--hints--

euler369()应该返回862400558448。

assert.strictEqual(euler369(), 862400558448);

--solutions--