大根堆排序

Grade 100 Open Time Wednesday, 17 June 2020, 4:15 PM
Discount 0.8 Time Discount Wednesday, 17 June 2020, 4:15 PM
Allow late Yes Close Time Wednesday, 17 June 2020, 4:15 PM
Input file sort.in Output file sort.out

【题目描述】sort

输入n个数,使用大根堆对n个数排序从小到大输出

【输入样例】

4

3 2 1 5

【输出样例】

1 2 3 5