1791: 计数排序

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

输入n个数,存入数组a中,每一个数都是介于0到k之间的整数,此处k为某个整数(n<=100000,k<=1000),按从小到大的顺序输出a数组中的数据。

Sample Input Copy

10
5 4 5 2 1 3 2 5 4 5

Sample Output Copy

1 2 2 3 4 4 5 5 5 5