欢迎你,Python 大佬。
你们别说可以直接算 a+b。现在最重要的是要找问题。
但是在本地 IDE 上能运行,在洛谷上却不能运行。
我不知道是什么原因,有谁可以看看?
a = list(map(int, list(input())))[::-1]
b = list(map(int, list(input())))[::-1]
c = []
lena = len(a)
lenb = len(b)
lenc = 0
x = 0
while lenc < lena and lenc < lenb:
h = a[lenc] + b[lenc] + x
x = h // 10
h %= 10
c.append(h)
lenc += 1
c = c[::-1]
c = list(map(str, c))
print(''.join(c))