Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem2187--selection sort algorithm
2187: selection sort algorithm
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
0
Solved:
0
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
Write the selection sort algorithm for an array of int in C++: Input a positive integer n (1
Input
Given a positive integer n and input n integers.
Output
A sorted array
Sample Input
Copy
5 1 3 2 5 7
Sample Output
Copy
1 2 3 5 7
Source/Category
15