PROGRAMMING:Number table

First, make up a question
Xiao Ming is a good child who loves to study. In class, the teacher assigned such an assignment:
According to a number table composed of n positive integers, add them to get a new number (a total of $$n * (n-1) / 2 $), and then sort the new number in non decreasing order.
For example, if the number table contains four numbers 1, 4, 3 and 9, then the correct answer is 4, 5, 7, 10, 12 and 13.
Please program to help Xiao Ming finish this problem!
###Input format:
The first line is an integer n (1 < n ≤ 100), which represents the number of integers in the data table;
The second line is n integers (0 ≤ integers ≤ 5000) in the number table. Adjacent integers are separated by a space.
Enter n integers to ensure no repetition.
###Output format:
Output the sum of a group of integers in ascending order, separated by a space between adjacent integers.
###Input example:
Here is a set of inputs. For example:
```in
four
1 4 3 9
```
###Output example:
The corresponding output is given here. For example:
```out
4 5 7 10 12 13
```
answer:If there is no answer, please comment
First, make up a question
Xiao Ming is a good child who loves to study. In class, the teacher assigned such an assignment:
According to a number table composed of n positive integers, add them to get a new number (a total of $$n * (n-1) / 2 $), and then sort the new number in non decreasing order.
For example, if the number table contains four numbers 1, 4, 3 and 9, then the correct answer is 4, 5, 7, 10, 12 and 13.
Please program to help Xiao Ming finish this problem!
###Input format:
The first line is an integer n (1 < n ≤ 100), which represents the number of integers in the data table;
The second line is n integers (0 ≤ integers ≤ 5000) in the number table. Adjacent integers are separated by a space.
Enter n integers to ensure no repetition.
###Output format:
Output the sum of a group of integers in ascending order, separated by a space between adjacent integers.
###Input example:
Here is a set of inputs. For example:
```in
four
1 4 3 9
```
###Output example:
The corresponding output is given here. For example:
```out
4 5 7 10 12 13
```
answer:If there is no answer, please comment