#D. 二级202106-4整数排序

    Type: Default 1000ms 256MiB

二级202106-4整数排序

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给定 10 个整数的序列,要求对其重新排序。排序要求:

1.奇数在前,偶数在后;

2.奇数按从大到小排序;

3.偶数按输入顺序逆序排序。

输入格式

输入一行,包含 10 个整数,彼此以一个空格分开,每个整数的范围是大于等于 0,小于等于 100。

输出格式

按照要求排序后输出一行,包含排序后的 10 个整数,数与数之间以一个空格分开。

输入数据 1

4 7 3 13 11 12 0 47 34 98

输出数据 1

47 13 11 7 3 98 34 0 12 4

数据范围与提示

二级第5轮了

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-30 9:45
End at
2023-8-21 21:45
Duration
540 hour(s)
Host
Partic.
9