jhljx学完字符串以后决定使用一下字符串做做练习。他给了n个字符串,让你对n个字符串按照字典序排列。
输入多组数据。每组数据第一行为一个正整数n(1<=n<=1000),下面n行为n个字符串(字符串长度<=100),字符串中只含有大小写字母。
每组数据输出n行,输出结果为按照字典序排列的字符串。
9 cap to cat card two too up boat boot 2 abc Abc
boat boot cap card cat to too two up Abc abc