0027 数组排序sort函数(2分)

输入数组长度n,和每个元素,使用sort函数进行排序,输出排序后结果

sort使用方式
#include <algorithm>
sort(a, a+5);


示例输入

5
7 4 1 8 9


示例输出

1 4 7 8 9