Reading a deck of cards

Using the @Card@ and @Deck@ class definitions, write a @Deck@ method

    read_cards()

to read a shuffled deck of cards.

Input

The input consists of several cards (three strings for each: the rank,
the word @of@, and the suit).

Output

Print the number of cards, the first card, and the last card in the
deck.

Precondition

The deck has at least two cards.

Problem information

Author: Gabriel Valiente

Generation: 2026-01-25T17:28:47.052Z

© Jutge.org, 2006–2026.
https://jutge.org
