#1023 组个最小数 (20 分)
代码展示:
data = list(map(eval,(input().split())))
digits = []
for i in range(10):
digits += ([i]*data[i])
# print(digits)
zeros = digits[0:data[0]]
nonzeros = digits[data[0]:]
result = [nonzeros[0]]
result += zeros
result += (nonzeros[1:])
result = list(map(str,result))
print("".join(result))
测评结果: