Problem2147--Sort descending

2147: Sort descending

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 137  Solved: 42
[Submit] [Status] [Web Board] [Creator:]

Description

Input 10 integers, use pointers to sort the 10 numbers in descending order and output. It is required that the even numbers come first and the odd numbers last. If the input number is: 1 2 3 4 5 6 7 8 9 10, the output is 10 8 6 4 2 9 7 5 3 1

Input

Given 10 integers

Output

Output sorted numbers

Sample Input Copy

6 5 7 8 9 1 2 3 4 10

Sample Output Copy

10 8 6 4 2 9 7 5 3 1

Source/Category

194