Problem1266--选择排序-奇数

1266: 选择排序-奇数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 356  Solved: 210
[Status] [Submit] [Creator:]

Description

给定一个长度为N(不大于500)的正整数序列,请将其中的所有奇数取出,并按降序输出。

Input

第1行为 N;
第2行为 N 个正整数,其间用空格间隔。

Output

降序输出的奇数序列,数据之间以空格间隔。数据保证至少有一个奇数。

Sample Input Copy

8
1 3 6 5 4 9 8 10

Sample Output Copy

9 5 3 1

Source/Category