結果

問題 No.2024 Xer
ユーザー ShirotsumeShirotsume
提出日時 2022-07-29 21:55:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 110,976 KB
最終ジャッジ日時 2023-09-26 20:45:10
合計ジャッジ時間 9,939 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,108 KB
testcase_01 AC 73 ms
71,292 KB
testcase_02 AC 74 ms
71,400 KB
testcase_03 AC 74 ms
71,320 KB
testcase_04 AC 73 ms
71,276 KB
testcase_05 AC 74 ms
71,440 KB
testcase_06 AC 75 ms
71,188 KB
testcase_07 AC 337 ms
110,976 KB
testcase_08 AC 145 ms
104,900 KB
testcase_09 AC 342 ms
106,544 KB
testcase_10 AC 148 ms
104,792 KB
testcase_11 AC 147 ms
86,700 KB
testcase_12 AC 225 ms
98,644 KB
testcase_13 AC 237 ms
100,128 KB
testcase_14 AC 330 ms
105,636 KB
testcase_15 AC 192 ms
96,204 KB
testcase_16 AC 243 ms
102,280 KB
testcase_17 AC 169 ms
90,156 KB
testcase_18 AC 160 ms
89,928 KB
testcase_19 AC 344 ms
105,856 KB
testcase_20 AC 233 ms
98,392 KB
testcase_21 AC 342 ms
106,796 KB
testcase_22 AC 350 ms
106,800 KB
testcase_23 AC 352 ms
106,364 KB
testcase_24 AC 354 ms
106,540 KB
testcase_25 AC 76 ms
71,408 KB
testcase_26 AC 85 ms
76,288 KB
testcase_27 AC 81 ms
76,416 KB
testcase_28 AC 75 ms
71,316 KB
testcase_29 AC 82 ms
76,336 KB
testcase_30 AC 85 ms
76,304 KB
testcase_31 AC 86 ms
76,584 KB
testcase_32 AC 85 ms
76,560 KB
testcase_33 AC 84 ms
76,428 KB
testcase_34 AC 76 ms
71,316 KB
testcase_35 AC 74 ms
71,308 KB
testcase_36 AC 84 ms
76,308 KB
testcase_37 AC 83 ms
76,484 KB
testcase_38 AC 85 ms
76,564 KB
testcase_39 AC 74 ms
71,508 KB
testcase_40 AC 76 ms
71,184 KB
testcase_41 AC 82 ms
76,304 KB
testcase_42 AC 86 ms
76,420 KB
testcase_43 AC 83 ms
76,432 KB
testcase_44 AC 83 ms
76,520 KB
testcase_45 AC 131 ms
104,256 KB
testcase_46 AC 89 ms
81,048 KB
testcase_47 AC 125 ms
100,212 KB
testcase_48 AC 73 ms
71,252 KB
testcase_49 AC 74 ms
71,256 KB
testcase_50 AC 74 ms
71,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
n, x = mi()

a = li()

b = [2 * v + x - 2 * (v & x) for v in a]

a.sort(key = lambda v: 2 * v + x - 2 * (v & x))

ans = 'Yes'
for i in range(n - 1):
    if a[i] < a[i + 1] ^ x and a[i] ^ x < a[i + 1]:
        pass
    else:
        ans = 'No'

print(ans)
0