我看這題python使用者兩個60%NA一個100%NA.......?
所以想問問到底是題目的問題還是code的問題
附上code:
def cin():
return [int(i) for i in input().split()]
def tree(s):
if not len(s):return
print(s[0],end=' ')
small=[i for i in s if i<s[0]]
big=[i for i in s if i>s[0]]
tree(small);tree(big)
return
while 1:
try:
n=int(input())
tree(cin())
print()
except:
break