Problem1832--字符串新排序(1)

1832: 字符串新排序(1)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

输入n个字符串,全部都是小写字符,请按以下规则排序:长度小的排在前,长度相等的按字符串排序。每个隔开一个空格。N<100。 

Sample Input Copy

10
asd  as  ad  a  abc   warret  bike  bi  c    ds  

Sample Output Copy

a c ad as bi ds abc asd bike warret

Source/Category

排序