- 字符串还原
- 2019-08-01 16:45:19 @
a = []
b = []
c = []
which = 'c'
n = int(input())
x = input()
y = input()
z = input()
for i in range(0, n):
a.append(ord(x[i])-96)
b.append(ord(y[i])-96)
c.append(ord(z[i])-96)
temp = c[::-1]
for i in range(0,n):
if (a[i] + b[i] - 2*temp[i]) % 26 != 0:
which = 'a'
break
temp = a[::-1]
for i in range(0,n):
if (b[i] + c[i] - 2*temp[i]) % 26 != 0:
which = 'b'
break
if which == 'a':
print(x[::-1])
if which == 'b':
print(y[::-1])
if which == 'c':
print(z[::-1])
0 条评论
目前还没有评论...