【例55.3】 绝对值排序

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.

说明

输入 nn(n100n≤100) 个整数,按照绝对值从大到小排序后输出。题目保证所有的数的绝对值都不相等。

输入格式

第一个数字为 nn,接着是 nn 个整数。

n个整数的绝对值都不超过1000。

输出格式

输出这 nn 个整数排序后的结果。

样例

3
3 -4 2
-4 3 2

周六下午13:30C++训练题单(袁 0523)

Not Claimed
Status
Done
Problem
38
Open Since
2026-5-23 13:30
Deadline
2026-5-30 23:59
Extension
24 hour(s)