题解 | #序列中删除指定数字#
序列中删除指定数字
http://www.nowcoder.com/practice/7bbcdd2177a445a9b66da79512b32dd7
n, m, mm = input(), input().split(), input()
a = [i for i in m if i != mm]
for i in a:
print(i, end=" ")
序列中删除指定数字
http://www.nowcoder.com/practice/7bbcdd2177a445a9b66da79512b32dd7
n, m, mm = input(), input().split(), input()
a = [i for i in m if i != mm]
for i in a:
print(i, end=" ")
相关推荐