classSolution:defaddToArrayForm(self, A: List[int], K:int)-> List[int]:
s =''
a =[]for i inrange(len(A)):
s +=str(A[i])
q =int(s)+ K
for i instr(q):
a.append(int(i))return a
# 执行用时 : 280 ms, 在Add to Array-Form of Integer的Python3提交中击败了43.75% 的用户# 内存消耗 : 13.5 MB, 在Add to Array-Form of Integer的Python3提交中击败了100.00% 的用户