結果

問題 No.2024 Xer
ユーザー 👑 rin204rin204
提出日時 2022-08-21 06:41:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 110,516 KB
最終ジャッジ日時 2024-04-18 04:35:30
合計ジャッジ時間 8,717 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,964 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 35 ms
52,764 KB
testcase_04 AC 35 ms
53,196 KB
testcase_05 AC 35 ms
52,056 KB
testcase_06 WA -
testcase_07 AC 319 ms
110,516 KB
testcase_08 AC 109 ms
102,208 KB
testcase_09 WA -
testcase_10 AC 112 ms
102,264 KB
testcase_11 AC 112 ms
80,540 KB
testcase_12 AC 201 ms
99,236 KB
testcase_13 AC 216 ms
100,528 KB
testcase_14 AC 297 ms
109,232 KB
testcase_15 AC 147 ms
87,620 KB
testcase_16 AC 244 ms
101,588 KB
testcase_17 WA -
testcase_18 AC 129 ms
83,988 KB
testcase_19 AC 303 ms
109,380 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 44 ms
61,336 KB
testcase_28 AC 38 ms
52,820 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 46 ms
62,520 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 37 ms
52,128 KB
testcase_40 AC 37 ms
54,216 KB
testcase_41 AC 44 ms
61,884 KB
testcase_42 WA -
testcase_43 AC 45 ms
61,676 KB
testcase_44 AC 46 ms
62,716 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 AC 36 ms
53,420 KB
testcase_49 AC 35 ms
53,332 KB
testcase_50 AC 35 ms
52,336 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(1, n):
    if A[i - 1] >= A[i] ^ x or A[i - 1] ^ x >= A[i]:
        print("No")
print("Yes")
0