Sort

Write a program that reads a sequence of lists of numbers, and prints
each list sorted in decreasing order.

Input

Input consists of a sequence of lists of numbers, each one composed of a
natural n followed by n integer numbers.

Output

Your program must print each line sorted in decreasing order, with the
numbers separated by a space.

Observation

Use the procedure |sort()| from the library |<algorithm>|.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:25:15.405Z

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