n = int(input())
for i in range(n):
l = input().split()
ll = []
x = input()
for j in l:
if j != x:
ll.append(j)
print(*ll)
有点取巧,哈哈哈
过了一段时间,又做了,发现,这题好简单
n = int(input())
for i in range(n):
s = input()
x = input()
print(*(s.replace(x,'')).split())