Sort
describe
Input integer array
and Sort ID
, For its elements, the Ascending
or Descending
Sort
Data range :1≤n≤1000
, Element size
Satisfy 0≤val≤100000
Input description :
The first line is the input array Element number
In the second line, enter the array to be sorted , Each number uses Space
separate
Enter an integer in the third line 0 or 1
.0 Represents ascending order
Sort ,1 In descending order
Sort
Output description :
Output Arrange order well
The number of <