num = []
flag = 1
def aaa(num):
for i in range(len(num)-1):
for j in range(len(num)-1-i):
if num[j] > num[j+1]:
tmp = num[j]
num[j] = num[j+1]
num[j+1] = tmp
return num
num = list(map(int, input().split()))
aaa(num)
for x in range(len(num)):
if flag == 1:
print(num[x], end='')
else:
print("->{}".format(num[x]), end='')
flag += 1
L1-010 比较大小 python实现
最新推荐文章于 2023-05-04 09:19:09 发布