1590: 【c13】使用库函数排序▅sort()

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:9

Description

从键盘读入5个整数。

第1行:从小到大排序输出。各数用空格隔开。

第2行:从大到小排序输出。各数用空格隔开。

使用sort()进行排序。

Sample Input Copy

2 0 1 4 8

Sample Output Copy

0 1 2 4 8
8 4 2 1 0