結果

問題 No.2024 Xer
ユーザー sotanishysotanishy
提出日時 2023-07-29 13:56:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 350 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 110,336 KB
最終ジャッジ日時 2024-04-16 19:54:17
合計ジャッジ時間 8,239 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,096 KB
testcase_01 AC 41 ms
51,712 KB
testcase_02 AC 41 ms
51,840 KB
testcase_03 AC 41 ms
51,584 KB
testcase_04 AC 41 ms
51,840 KB
testcase_05 AC 41 ms
51,840 KB
testcase_06 AC 41 ms
51,968 KB
testcase_07 AC 328 ms
110,336 KB
testcase_08 AC 129 ms
102,148 KB
testcase_09 AC 350 ms
103,676 KB
testcase_10 AC 132 ms
101,948 KB
testcase_11 AC 128 ms
80,768 KB
testcase_12 AC 234 ms
99,584 KB
testcase_13 AC 237 ms
101,248 KB
testcase_14 AC 322 ms
108,928 KB
testcase_15 AC 154 ms
88,576 KB
testcase_16 AC 252 ms
102,656 KB
testcase_17 AC 145 ms
83,712 KB
testcase_18 AC 145 ms
85,120 KB
testcase_19 AC 320 ms
108,800 KB
testcase_20 AC 227 ms
99,584 KB
testcase_21 AC 331 ms
103,560 KB
testcase_22 AC 331 ms
103,936 KB
testcase_23 AC 334 ms
103,560 KB
testcase_24 AC 336 ms
103,412 KB
testcase_25 AC 44 ms
52,736 KB
testcase_26 AC 51 ms
59,648 KB
testcase_27 AC 52 ms
60,288 KB
testcase_28 AC 43 ms
52,480 KB
testcase_29 AC 48 ms
58,752 KB
testcase_30 AC 50 ms
59,392 KB
testcase_31 AC 51 ms
60,032 KB
testcase_32 AC 54 ms
61,312 KB
testcase_33 AC 50 ms
59,392 KB
testcase_34 AC 43 ms
52,480 KB
testcase_35 AC 41 ms
51,968 KB
testcase_36 AC 49 ms
59,264 KB
testcase_37 AC 51 ms
59,648 KB
testcase_38 AC 51 ms
59,904 KB
testcase_39 AC 42 ms
52,352 KB
testcase_40 AC 43 ms
52,352 KB
testcase_41 AC 52 ms
60,160 KB
testcase_42 AC 51 ms
59,648 KB
testcase_43 AC 53 ms
60,928 KB
testcase_44 AC 54 ms
60,672 KB
testcase_45 AC 108 ms
103,680 KB
testcase_46 AC 60 ms
69,376 KB
testcase_47 AC 103 ms
101,248 KB
testcase_48 AC 41 ms
51,456 KB
testcase_49 AC 41 ms
51,584 KB
testcase_50 AC 42 ms
51,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X=map(int,input().split())
A=list(map(int,input().split()))
A.sort(key=lambda y:y&~X)
print("Yes" if all(A[i]<A[i+1]^X and A[i]^X<A[i+1] for i in range(N-1)) else "No")
0