#37815: python 紀錄


BensonDC (python戰士)

學校 : 不指定學校
編號 : 240921
來源 : [1.175.217.87]
最後登入時間 :
2024-03-27 12:33:26
f410. 芝麻街的郵件投遞 -- 板橋高中教學題 | From: [36.238.155.47] | 發表日期 : 2023-10-10 08:50

n=int(input())
L=[int(x) for x in input().split()]
o=sorted([i for i in L if i%2==1],reverse=True)
e=sorted([i for i in L if i %2==0])
print(*e,*o)

 
ZeroJudge Forum