1 条题解
-
0
Python :
# coding=utf-8 try: while True: line = input() if line == "0": break parts = line.split() n = int(parts[0]) numbers = list(map(int, parts[1:])) sorted_numbers = sorted(numbers, key=lambda x: abs(x), reverse=True) for num in sorted_numbers: print(num, end=" ") print() except EOFError: print()
- 1
信息
- ID
- 562
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者