-->
当前位置:首页 > 题库

PROGRAMMING:String sorting

Luz5年前 (2021-05-10)题库462
This problem requires the preparation of procedures, read 5 strings, according to the order of output from small to large.
###Input format:
Input five non empty strings separated by spaces, each string does not include blank characters such as spaces, tabs, and newlines, and the length is less than 80.
###Output format:
Output sorted results in the following format:
```
After sorted:
One string per line
```
###Input example:
```in
red yellow blue green white
```
###Output example:
```out
After sorted:
blue
green
red
white
yellow
```






answer:If there is no answer, please comment