928. Cribbage

This problem is based on (but not identical to) the scoring for the card game Cribbage

Consider a normal pack of 52 cards. A Hand is a selection of one or more of these cards.

For each Hand the Hand score is the sum of the values of the cards in the Hand where the value of Aces is 1 and the value of court cards (Jack, Queen, King) is 10.

The Cribbage score is obtained for a Hand by adding together the scores for:

For example, (5,5,5,K) has a Cribbage score of 14 as there are four ways that fifteen can be made and also three pairs can be made.

The example (A,A,2,3,4,5) has a Cribbage score of 16: two runs of five worth 10 points, two ways of getting fifteen worth 4 points and one pair worth 2 points. In this example the Hand score is equal to the Cribbage score.

Find the number of Hands in a normal pack of cards where the Hand score is equal to the Cribbage score.

928. 克里比奇牌戏

本题基于 克里比奇牌戏 的计分方式(但不完全相同)。

考虑一副 52 张牌的标准扑克。一手牌指的是该扑克中的一张或者多张牌。

对于每一手牌,其 手牌得分 的计算方式为:把该手牌中每张牌的数值相加得到的值。其中 A 的数值计为 1、花牌(J、Q、K)的数值计为 10

对于每一手牌,其 克里比奇得分 是以下三项得分的总和:

例如,(5,5,5,K) 的克里比奇得分是 14,因为这手牌有 4 个十五点和 3 个对子。而 (A,A,2,3,4,5) 的克里比奇得分是 16:两个长度为 5 的顺子一共 10 分,两个十五点计 4 分,一个对子计 2 分。可以发现,这手牌的手牌得分恰等于克里比奇得分。

在一副 52 张牌的标准扑克中,有多少手牌的手牌得分恰等于克里比奇得分?


这个链接 回到源站。

这个链接 回到详细版题目目录。