Sorting - MarisaOJ: Marisa Online Judge

Sorting

Time limit: 1000 ms
Memory limit: 256 MB
You are given an integer array $A$ of length $n$. Print array $A$ in ascending order. ### Input - The first line contains an integer $n$. - The second line contains $n$ integers $A_i$. ### Output - $A$ in ascending order. ### Constraints - $1 \le n \le 1000$. - $|A_i| \le 1000$. ### Example Input: ``` 5 -3 1 -5 9 4 ``` Output: ``` -5 -3 1 4 9 ```