题解 | 小红的回文串
小红的回文串
https://www.nowcoder.com/practice/b0c3a7aecb0a47ab865602585f4402a7
s = int(input())
for _ in range(s):
n = input()
n = n.replace('w','vv')
n = n.replace('m','nn')
n = n.replace('u','n')
n = n.replace('d','b')
n = n.replace('b','q')
n = n.replace('p','q')
if n == n[::-1]:
print('YES')
else:
print('NO')

小米集团稳定性 102人发布