题解 | 统计回文
统计回文
https://www.nowcoder.com/practice/9d1559511b3849deaa71b576fa7009dc
A = input()
B = input()
sum = 0
for i in range(len(A)):
new_str = A[:i]+B+A[i:]
if new_str == new_str[::-1]:
sum+=1
new_str = A+B
if new_str == new_str[::-1]:
sum+=1
print(sum)
顺丰集团工作强度 374人发布
