⌨️

[AtCoder]ABC-191|B - Remove It

2023/04/04に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def getIntList():
    return list(map(int, input().split()))


def main():
    n, x = getIntMap()
    a = getIntList()

    b = [str(i) for i in a if i != x]

    print(" ".join(b))


if __name__ == "__main__":
    main()

Discussion