Runtime Error.
Program exited with code 1.
代码:
amount = int(input())
nums = input().split(' ')
for i in range(len(nums) - 1):
for j in range(len(nums) - 1 - i):
if int(nums[j]+nums[j+1]) < int(nums[j+1]+nums[j]):
nums[j+1], nums[j] = nums[j], nums[j+1]
print(''.join(nums))