#P2003. 字符串比较

字符串比较

题目描述

输入多个英文单词(单词都为小写字母),然后按字典顺序排序输出。注:单词首字母相同时就比较第二个字母,以此类推。

输入

输入多个由小写字母组成的英文单词,单词之间以一个英文逗号隔开

输出

按字典顺序排序输出,且单词之间以一个英文逗号隔开

python,hello,world
hello,python,world
banana,apple,grape
apple,banana,grape

数据范围

对于 20%20\% 的数据: 0a,b1000\leq a,b\leq 100;

对于 50%50\% 的数据: 0a,b1030\leq a,b\leq 10^3;

对于 100%100\% 的数据: 0a,b9×10180\leq a,b\leq 9 \times 10^{18};