#4938. 计数排序

计数排序

Description

请用计数排序方法对数组进行排序

Input Format

第一行一个整数n范围在 [1,10^6]
第二行n个整数范围在 [1,10^6]
5
4 5 3 1 2
1 2 3 4 5

Source

进阶排序