結果

問題 No.2024 Xer
ユーザー lloyzlloyz
提出日時 2022-11-03 00:02:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 269 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 30,692 KB
最終ジャッジ日時 2023-09-24 10:53:42
合計ジャッジ時間 7,934 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 15 ms
8,044 KB
testcase_02 AC 15 ms
8,116 KB
testcase_03 AC 15 ms
7,892 KB
testcase_04 AC 16 ms
7,740 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 AC 16 ms
8,044 KB
testcase_07 AC 269 ms
29,796 KB
testcase_08 AC 206 ms
30,692 KB
testcase_09 AC 178 ms
29,984 KB
testcase_10 AC 207 ms
30,588 KB
testcase_11 AC 89 ms
14,876 KB
testcase_12 AC 148 ms
19,888 KB
testcase_13 AC 158 ms
20,964 KB
testcase_14 AC 264 ms
29,912 KB
testcase_15 AC 115 ms
17,260 KB
testcase_16 AC 179 ms
22,368 KB
testcase_17 AC 75 ms
16,520 KB
testcase_18 AC 103 ms
15,896 KB
testcase_19 AC 262 ms
29,044 KB
testcase_20 AC 105 ms
20,736 KB
testcase_21 AC 175 ms
29,968 KB
testcase_22 AC 177 ms
29,964 KB
testcase_23 AC 185 ms
29,928 KB
testcase_24 AC 183 ms
29,904 KB
testcase_25 AC 16 ms
8,248 KB
testcase_26 AC 17 ms
8,528 KB
testcase_27 AC 18 ms
8,168 KB
testcase_28 AC 16 ms
7,740 KB
testcase_29 AC 15 ms
8,308 KB
testcase_30 AC 17 ms
8,600 KB
testcase_31 AC 17 ms
8,644 KB
testcase_32 AC 19 ms
8,656 KB
testcase_33 AC 17 ms
8,480 KB
testcase_34 AC 15 ms
8,268 KB
testcase_35 AC 15 ms
8,160 KB
testcase_36 AC 17 ms
8,564 KB
testcase_37 AC 18 ms
8,576 KB
testcase_38 AC 18 ms
8,708 KB
testcase_39 AC 15 ms
7,936 KB
testcase_40 AC 15 ms
7,744 KB
testcase_41 AC 17 ms
8,268 KB
testcase_42 AC 17 ms
8,612 KB
testcase_43 AC 18 ms
8,408 KB
testcase_44 AC 19 ms
8,572 KB
testcase_45 AC 145 ms
25,148 KB
testcase_46 AC 41 ms
12,368 KB
testcase_47 AC 116 ms
20,992 KB
testcase_48 AC 15 ms
7,900 KB
testcase_49 AC 15 ms
7,840 KB
testcase_50 AC 15 ms
7,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
A = list(map(int, input().split()))

A.sort(key=lambda a: min(a, a ^ x))
for i in range(n - 1):
    if A[i] >= A[i + 1] ^ x or A[i] ^ x >= A[i + 1]:
        print("No")
        exit()
print("Yes")
0