結果

問題 No.2024 Xer
ユーザー pitP
提出日時 2022-07-29 23:17:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 136,380 KB
最終ジャッジ日時 2024-07-19 16:43:57
合計ジャッジ時間 4,839 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 32 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x = map(int,input().split())
a = list(map(int,input().split()))
if len(a) != len(set(a)):
    print("No")
    exit()
#print(bin(x)[2:][::-1])
#print("AAAAA")

cnt = 0
for num in a:
    if num^x <= x:
        cnt += 1
        #print(bin(num)[2:][::-1])

print("Yes" if cnt <= 1 else "No")
0