Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem C: 选择排序1
Problem C: 选择排序1
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 6
Submit Num: 8
Statistics
ShowOff!
Description
选择排序特点:选最值放前面,不稳定,O(n
2
)
降序排序
Input
第一行 数组的元素个数
第二行数组每个元素
Sample Input
Copy
4 1 2 3 4
Sample Output
Copy
4 3 2 1