Control C501C

Your task is to write a program that reads a sequence of words and
prints them in alphabetical order.

Input

The input starts with a natural number n and continues with the n words
that your program must sort. All the words are formed exclusively by
lowercase letters.

Output

The output is a line with the n words of the input in alphabetical
order, separated by a comma.

Observation

You must use the algorithm insertion sort to solve this problem. Any
other method will be qualified with a zero

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T12:14:45.205Z

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