#30145: PYTHON 提示


5438pauli@gmail.com (pauli kuo)

學校 : 不指定學校
編號 : 190870
來源 : []
最後登入時間 :
2022-04-17 15:20:53
d587. 參貳壹真好吃 -- jack1 | From: [125.228.129.87] | 發表日期 : 2022-05-01 15:11

i = int(input())
g = [int(i) for i in input().split()]
t = 0
y = 0
u = 0

 

 

for e in range(i):
    if g[e] == 1:
        t += 1
    elif g[e] == 2:
        y += 1
    else:
        u += 1

 

 

 


for q in range(t):
    print("1",end=" ")
for q in range(y):
    print("2",end=" ")
for q in range(u):
    print("3",end=" ")
print()

Here where I fine it : https://steam.oxxostudio.tw/category/python/zerojudge/d587.html

 
ZeroJudge Forum