Your task is to write a program that reads a sequence of words and prints them in alphabetical order.
The input starts with a natural number and continues with the words that your program must sort. All the words are formed exclusively by lowercase letters.
The output is a line with the words of the input in alphabetical order, separated by a comma.
You must use the algorithm selection sort to solve this problem. Any other method will be qualified with a zero.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:10:12.564Z
© Jutge.org, 2006–2026.
https://jutge.org