|
|||
Alphabetic ExclusionEdgar Stiles has been given a list of words to sort. However, he decided it would be easier for him simply to throw some words away so that the rest of the list (in the same relative order) will be sorted. Sadly, he can't even do this trick without help. That's why you need to do this. Input SpecificationYou will be given a set of input cases, each of which will begin with an unsigned decimal integer (representing the size of the list of words, no larger than 1000) followed by <EOLN>. Then will follow the list of words, consisting only of capital letters, of length not exceeding ten, each followed by <EOLN>. The last input case will be followed by “0<EOLN>”. Output Specification
The output cases should appear in the same order as the input cases. Each output case will be
of the form “ Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |