Ordenar seqüència


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Donada una seqüència de números, ordenar-la en ordre ascendent.

Input Format

El primer número \(N\) indica el tamany de la seqüència. A continuació ve la seqüència.

Constraints

\(-\)

Output Format

La seqüència ordenada de números, separats per espais.

Sample Input 0

5    20 10 40 50 30

Sample Output 0

10 20 30 40 50

Sample Input 1

5    50 40 30 20 10

Sample Output 1

10 20 30 40 50

Sample Input 2

1   500

Sample Output 2

500

Sample Input 3

10    6 3 7 56 4 7 4 4 9 3

Sample Output 3

3 3 4 4 4 6 7 7 9 56

Sample Input 4

3    1 1 1

Sample Output 4

1 1 1

Autoria: Rusben

CC BY-NC-SA 4.0