提出 #19956617


ソースコード 拡げる

def main():
    n,x = map(int, input().split())
    a = list(map(int, input().split()))
    ans = []
    for i in a:
        if i != x:
            ans.append(i)
    print(*ans)


if __name__=="__main__":
    main()

提出情報

提出日時
問題 B - Remove It
ユーザ kenken0305
言語 Python (3.8.2)
得点 200
コード長 226 Byte
結果 AC
実行時間 79 ms
メモリ 20132 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 14
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All handmade_00.txt, handmade_01.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
handmade_00.txt AC 28 ms 9036 KiB
handmade_01.txt AC 26 ms 8984 KiB
random_00.txt AC 49 ms 19976 KiB
random_01.txt AC 76 ms 19972 KiB
random_02.txt AC 72 ms 20000 KiB
random_03.txt AC 79 ms 19816 KiB
random_04.txt AC 78 ms 20132 KiB
random_05.txt AC 31 ms 10228 KiB
random_06.txt AC 42 ms 18020 KiB
random_07.txt AC 27 ms 9732 KiB
random_08.txt AC 47 ms 13772 KiB
random_09.txt AC 64 ms 17048 KiB
sample_01.txt AC 20 ms 8976 KiB
sample_02.txt AC 18 ms 8980 KiB