Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
271 B
0
Indexable
Never
n=list(map(int,input().split(' ')))
a=n
x=''
for i in range(len(n)):
    while n[i]//10 != 0:
        n[i]=n[i]//10
for j in range(len(n)):
    print(n)
    print(a)
    x+=str(a[n.index(max(n))])
    a.pop(n.index(max(n)))
    n.pop(n.index(max(n)))
print(x)