結果

問題 No.2024 Xer
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-07-29 23:49:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 712 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 120,876 KB
最終ジャッジ日時 2023-09-26 23:45:43
合計ジャッジ時間 15,286 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,216 KB
testcase_01 AC 73 ms
71,468 KB
testcase_02 AC 73 ms
71,336 KB
testcase_03 AC 72 ms
71,496 KB
testcase_04 AC 73 ms
71,492 KB
testcase_05 AC 72 ms
71,212 KB
testcase_06 AC 72 ms
71,084 KB
testcase_07 AC 704 ms
109,464 KB
testcase_08 AC 183 ms
120,636 KB
testcase_09 AC 691 ms
120,628 KB
testcase_10 AC 183 ms
120,876 KB
testcase_11 AC 240 ms
91,540 KB
testcase_12 AC 387 ms
97,628 KB
testcase_13 AC 424 ms
99,404 KB
testcase_14 AC 700 ms
119,680 KB
testcase_15 AC 301 ms
95,404 KB
testcase_16 AC 453 ms
101,184 KB
testcase_17 AC 277 ms
93,616 KB
testcase_18 AC 272 ms
94,304 KB
testcase_19 AC 690 ms
119,388 KB
testcase_20 AC 413 ms
97,504 KB
testcase_21 AC 712 ms
120,608 KB
testcase_22 AC 703 ms
120,636 KB
testcase_23 AC 704 ms
120,488 KB
testcase_24 AC 692 ms
120,532 KB
testcase_25 AC 76 ms
71,300 KB
testcase_26 AC 83 ms
76,116 KB
testcase_27 AC 83 ms
76,624 KB
testcase_28 AC 75 ms
71,372 KB
testcase_29 AC 81 ms
76,224 KB
testcase_30 AC 86 ms
76,392 KB
testcase_31 AC 88 ms
76,368 KB
testcase_32 AC 89 ms
76,616 KB
testcase_33 AC 82 ms
76,252 KB
testcase_34 AC 76 ms
71,532 KB
testcase_35 AC 73 ms
71,384 KB
testcase_36 AC 83 ms
76,432 KB
testcase_37 AC 86 ms
76,128 KB
testcase_38 AC 87 ms
76,432 KB
testcase_39 AC 73 ms
71,368 KB
testcase_40 AC 73 ms
71,364 KB
testcase_41 AC 84 ms
76,528 KB
testcase_42 AC 84 ms
76,376 KB
testcase_43 AC 83 ms
76,728 KB
testcase_44 AC 86 ms
76,508 KB
testcase_45 AC 534 ms
103,256 KB
testcase_46 AC 158 ms
84,240 KB
testcase_47 AC 413 ms
98,864 KB
testcase_48 AC 69 ms
71,268 KB
testcase_49 AC 71 ms
71,340 KB
testcase_50 AC 74 ms
71,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x = map(int,input().split())
A = list(map(int,input().split()))
sA = sorted([[min(a,a^x),a] for a in A])
for i in range(n-1):
    a = sA[i][1]
    na = sA[i+1][1]
    
    if a < na^x and a^x < na:
        continue
    print("No")
    exit()
print("Yes")
0