結果

問題 No.2024 Xer
ユーザー shotoyooshotoyoo
提出日時 2023-08-01 01:19:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 772 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 144,640 KB
最終ジャッジ日時 2024-04-19 00:55:43
合計ジャッジ時間 7,115 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
54,272 KB
testcase_01 AC 44 ms
54,016 KB
testcase_02 AC 43 ms
54,144 KB
testcase_03 AC 44 ms
54,144 KB
testcase_04 AC 43 ms
53,888 KB
testcase_05 AC 43 ms
54,144 KB
testcase_06 AC 44 ms
54,144 KB
testcase_07 AC 135 ms
120,704 KB
testcase_08 AC 154 ms
144,348 KB
testcase_09 AC 130 ms
114,920 KB
testcase_10 AC 158 ms
144,640 KB
testcase_11 AC 80 ms
90,752 KB
testcase_12 AC 103 ms
113,024 KB
testcase_13 AC 108 ms
119,296 KB
testcase_14 AC 156 ms
143,872 KB
testcase_15 AC 93 ms
102,144 KB
testcase_16 AC 116 ms
108,032 KB
testcase_17 AC 88 ms
98,048 KB
testcase_18 AC 87 ms
97,792 KB
testcase_19 AC 155 ms
143,636 KB
testcase_20 AC 105 ms
114,048 KB
testcase_21 AC 158 ms
144,488 KB
testcase_22 AC 157 ms
144,224 KB
testcase_23 AC 158 ms
144,484 KB
testcase_24 AC 160 ms
144,108 KB
testcase_25 WA -
testcase_26 AC 53 ms
62,720 KB
testcase_27 AC 52 ms
61,824 KB
testcase_28 AC 46 ms
54,528 KB
testcase_29 WA -
testcase_30 AC 51 ms
62,592 KB
testcase_31 AC 52 ms
63,232 KB
testcase_32 AC 54 ms
63,104 KB
testcase_33 AC 52 ms
62,592 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 52 ms
62,080 KB
testcase_37 WA -
testcase_38 AC 53 ms
63,232 KB
testcase_39 AC 45 ms
54,016 KB
testcase_40 AC 46 ms
54,272 KB
testcase_41 AC 51 ms
61,824 KB
testcase_42 AC 52 ms
62,592 KB
testcase_43 AC 52 ms
62,080 KB
testcase_44 AC 52 ms
62,848 KB
testcase_45 AC 102 ms
101,504 KB
testcase_46 AC 72 ms
71,680 KB
testcase_47 AC 92 ms
100,096 KB
testcase_48 AC 48 ms
54,272 KB
testcase_49 AC 45 ms
54,016 KB
testcase_50 AC 45 ms
53,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, random
input = lambda : sys.stdin.readline().rstrip()


write = lambda x: sys.stdout.write(x+"\n"); writef = lambda x: print("{:.12f}".format(x))
debug = lambda x: sys.stderr.write(x+"\n")
YES="Yes"; NO="No"; pans = lambda v: print(YES if v else NO); INF=10**18
LI = lambda : list(map(int, input().split())); II=lambda : int(input()); SI=lambda : [ord(c)-ord("a") for c in input()]
def debug(_l_):
    for s in _l_.split():
        print(f"{s}={eval(s)}", end=" ")
    print()
def dlist(*l, fill=0):
    if len(l)==1:
        return [fill]*l[0]
    ll = l[1:]
    return [dlist(*ll, fill=fill) for _ in range(l[0])]

n,x = list(map(int, input().split()))
a = LI()
na = []
for v in a:
    tmp = x&v
    nv = v ^ tmp
    na.append(nv)
pans(len(set(na))==len(na))
0