POJ-3087 Shuffle'm Up
Shuffle’m Up (POJ - 3087) 题面 A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack containing C chips. Each stack may contain chips of several different colors. The actual shuffle operation is performed by interleaving a chip from S1 with a chip from S2 as shown below for C = 5: ...