a = input(“输入需要解码的数组:”)
arr = [int(n) for n in a.split()]
dictionary = {i:chr(i) for i in range(32,122)}
last = 256
result = []
p = arr.pop(0)
result.append(dictionary[p])
for c in arr:
if c in dictionary:
entry = dictionary[c]
result.append(entry)
dictionary[last] = dictionary[p] + entry[0]
last += 1
p = c
print(result)