4090. Sort

Naive循环函数普通指针排序

时间限制:2000 ms

内存限制:512 MiB

题面

输入 nn (1<n<111 < n < 11)个等长字符串(长度不超8080),按照字符串的大小按升序排序。定义函数 Sort 调用qsort 按要求排序。

//********** Specification of Sort **********
#define LEN 80
void Sort(char (*a)[LEN+1], int n);
/* PreCondition:  
          a is row pointer which points to an array of strings 
          (represented by a two-dimensional array of chars), 
          and n is the count of strings
    PostCondition: 
          a is sorted satisfying to the specification
*/

样例

输入

3
ecnu
ECNU
Ecnu

输出

ECNU
Ecnu
ecnu