题目:
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gamblers by performing inadequate shuffles, many casinos employ automatic shuffling machines. Your task is to simulate a shuffling machine.
(译文:洗牌是一种将一副扑克牌随机化的过程。因为标准的洗牌技巧被认为是不严谨的,为了避免“内部交易”,即员工通过不充分的洗牌与赌徒合作,许多赌场使用自动洗牌机。你的任务是模拟洗牌机。)
The machine shuffles a deck of 54 cards according to a given random order and repeats for a given number of times. It is assumed that the initial status of a card deck is in the following order:
(译文:这台机器根据给定的随机顺序洗54张牌,并重复给定的次数。假设一副牌的初始状态顺序如下:)
S1, S2, ..., S13,
H1, H2, ..., H13,
C1, C2, ..., C13,
D1, D2, ..., D13,
J1, J2
where "S" stands for "Spade", "H"