PTA乙1023

A = list(map(int, input().split()))
n = A[0]
s = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
t = ''
for i in range(10):
    t = t + A[i] * s[i]
A = list(map(int, t))
B = []
z = []
z = A[0 : n]
A = A[n : ]
B.append(A[0])
A.remove(A[0])
B = B + z + A
for b in B:
    print(b, end = '')

猜你喜欢

转载自blog.csdn.net/AK47red/article/details/89343416
PTA