結果

問題 No.2024 Xer
ユーザー buey_tbuey_t
提出日時 2023-03-29 18:39:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 407 ms / 2,000 ms
コード長 1,275 bytes
コンパイル時間 469 ms
コンパイル使用メモリ 81,764 KB
実行使用メモリ 129,200 KB
最終ジャッジ日時 2023-10-21 09:14:38
合計ジャッジ時間 14,206 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
84,456 KB
testcase_01 AC 111 ms
84,456 KB
testcase_02 AC 113 ms
84,448 KB
testcase_03 AC 112 ms
84,460 KB
testcase_04 AC 120 ms
84,448 KB
testcase_05 AC 119 ms
84,460 KB
testcase_06 AC 114 ms
84,460 KB
testcase_07 AC 353 ms
124,004 KB
testcase_08 AC 200 ms
129,200 KB
testcase_09 AC 399 ms
128,144 KB
testcase_10 AC 205 ms
128,144 KB
testcase_11 AC 190 ms
98,292 KB
testcase_12 AC 262 ms
107,888 KB
testcase_13 AC 269 ms
110,532 KB
testcase_14 AC 380 ms
128,672 KB
testcase_15 AC 214 ms
103,300 KB
testcase_16 AC 293 ms
113,432 KB
testcase_17 AC 214 ms
101,636 KB
testcase_18 AC 212 ms
101,444 KB
testcase_19 AC 391 ms
128,144 KB
testcase_20 AC 247 ms
108,512 KB
testcase_21 AC 394 ms
128,144 KB
testcase_22 AC 402 ms
127,880 KB
testcase_23 AC 406 ms
127,616 KB
testcase_24 AC 407 ms
127,616 KB
testcase_25 AC 128 ms
88,360 KB
testcase_26 AC 131 ms
89,196 KB
testcase_27 AC 127 ms
89,196 KB
testcase_28 AC 120 ms
88,368 KB
testcase_29 AC 124 ms
89,132 KB
testcase_30 AC 131 ms
89,196 KB
testcase_31 AC 140 ms
89,196 KB
testcase_32 AC 131 ms
89,220 KB
testcase_33 AC 129 ms
89,212 KB
testcase_34 AC 124 ms
88,356 KB
testcase_35 AC 118 ms
84,456 KB
testcase_36 AC 127 ms
89,220 KB
testcase_37 AC 125 ms
89,172 KB
testcase_38 AC 136 ms
89,184 KB
testcase_39 AC 110 ms
84,456 KB
testcase_40 AC 120 ms
88,356 KB
testcase_41 AC 133 ms
89,200 KB
testcase_42 AC 132 ms
89,204 KB
testcase_43 AC 128 ms
89,216 KB
testcase_44 AC 135 ms
89,228 KB
testcase_45 AC 328 ms
117,780 KB
testcase_46 AC 160 ms
93,064 KB
testcase_47 AC 254 ms
110,468 KB
testcase_48 AC 117 ms
84,452 KB
testcase_49 AC 121 ms
84,460 KB
testcase_50 AC 118 ms
84,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum
    from heapq import heapify, heappop, heappush
    from bisect import bisect_left, bisect_right
    from copy import deepcopy
    import copy
    import random
    from collections import deque,Counter,defaultdict
    from itertools import permutations,combinations
    from decimal import Decimal,ROUND_HALF_UP
    #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    from functools import lru_cache, reduce
    #@lru_cache(maxsize=None)
    from operator import add,sub,mul,xor,and_,or_,itemgetter
    INF = 10**18
    mod1 = 10**9+7
    mod2 = 998244353
    
    #DecimalならPython
    #再帰ならPython!!!!!!!!!!!!!!!!!!!!!!!!!!
    
    
    '''
    
    
    
    '''
    
    N,X = map(int, input().split())
    A = list(map(int, input().split()))
    
    A.sort(lambda x:min(x,x^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')
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
if __name__ == '__main__':
    main()
0