#B. 二级202109-2偶数降序输出

    Type: Default 1000ms 256MiB

二级202109-2偶数降序输出

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.

题目描述

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

输入

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

输出

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

样例输入

10

1 3 2 6 5 4 9 8 7 10

样例输出

10 8 6 4 2

二级第6轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-30 22:15
End at
2023-8-19 2:15
Duration
460 hour(s)
Host
Partic.
9