1044: 对调最大数

Memory Limit:128 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:728 Solved:384

Description

输入N个整数,找出最大数所在位置,并将它与第一个数对调位置。

Input

第一行:一个整数N

第二行:N个整数

Output

输出一行,N个整数

Sample Input Copy

5
2 4 6 3 9

Sample Output Copy

9 4 6 3 2

加入题单

算法标签: