题目链接:HDU 6215
Brute Force Sorting
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 302 Accepted Submission(s): 60
Problem Description
Beerus needs to sort an array of
N integers. Algorithms are not Beerus's strength. Destruction is what he excels. He can destroy all unsorted numbers in the array simultaneously. A number
A[i] of the array is sorted if it satisfies the following requirements.
1. A[i] is the first element of the array, or it is no smaller than the left one A[i−1] .
2. A[
1. A[i] is the first element of the array, or it is no smaller than the left one A[i−1] .
2. A[