Problem1800--字符串排序

1800: 字符串排序

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求编写程序,读入5个字符串,按由小到大的顺序输出。

Input

输入为由空格分隔的5个非空字符串,每个字符串不包括空格、制表符、换行符等空白字符,长度小于80。

Output

按照以下格式输出排序后的结果: After sorted: 每行一个字符串

Sample Input Copy

red yellow blue green white

Sample Output Copy

After sorted:
blue
green
red
white
yellow

Source/Category

305