这道题比较简单
def pd(c, x, y, z):
if c == x:
return z
elif c == y:
return x
else:
return y
def solve():
x, y, z, ch = input().split()
print(pd(ch, x, y, z))
t = int(input())
for _ in range(t):
solve()
这道题比较简单
def pd(c, x, y, z):
if c == x:
return z
elif c == y:
return x
else:
return y
def solve():
x, y, z, ch = input().split()
print(pd(ch, x, y, z))
t = int(input())
for _ in range(t):
solve()