if __name__ == '__main__':
inputs = input().split()
l = []
for i in range(10):
for j in range(int(inputs[i])):
l.append(i)
l.sort(reverse=False)
first = -1
index = -1
for i in range(len(l)):
if l[i] != 0:
first = l[i]
index = i
break
r = str(first)
for i in range(len(l)):
if i != index:
r += str(l[i])
print(r)
PAT (Basic Level) Practice (中文)1023 组个最小数
最新推荐文章于 2024-09-03 18:29:17 发布