結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
84,544 KB
testcase_01 AC 115 ms
84,536 KB
testcase_02 AC 117 ms
84,540 KB
testcase_03 AC 115 ms
84,536 KB
testcase_04 AC 113 ms
84,536 KB
testcase_05 AC 112 ms
84,536 KB
testcase_06 AC 122 ms
84,544 KB
testcase_07 AC 379 ms
124,104 KB
testcase_08 AC 207 ms
129,292 KB
testcase_09 AC 427 ms
128,008 KB
testcase_10 AC 207 ms
127,972 KB
testcase_11 AC 201 ms
98,380 KB
testcase_12 AC 248 ms
107,980 KB
testcase_13 AC 272 ms
110,624 KB
testcase_14 AC 402 ms
128,764 KB
testcase_15 AC 220 ms
103,392 KB
testcase_16 AC 284 ms
113,524 KB
testcase_17 AC 210 ms
101,728 KB
testcase_18 AC 210 ms
101,532 KB
testcase_19 AC 385 ms
128,236 KB
testcase_20 AC 267 ms
108,600 KB
testcase_21 AC 399 ms
128,236 KB
testcase_22 AC 411 ms
127,972 KB
testcase_23 AC 408 ms
127,708 KB
testcase_24 AC 392 ms
127,708 KB
testcase_25 AC 126 ms
88,436 KB
testcase_26 AC 137 ms
89,284 KB
testcase_27 AC 133 ms
89,296 KB
testcase_28 AC 128 ms
88,448 KB
testcase_29 AC 130 ms
89,228 KB
testcase_30 AC 134 ms
89,288 KB
testcase_31 AC 134 ms
89,284 KB
testcase_32 AC 138 ms
89,296 KB
testcase_33 AC 135 ms
89,300 KB
testcase_34 AC 130 ms
88,440 KB
testcase_35 AC 117 ms
84,536 KB
testcase_36 AC 131 ms
89,304 KB
testcase_37 AC 129 ms
89,284 KB
testcase_38 AC 128 ms
89,272 KB
testcase_39 AC 117 ms
84,540 KB
testcase_40 AC 128 ms
88,416 KB
testcase_41 AC 132 ms
89,296 KB
testcase_42 AC 129 ms
89,304 KB
testcase_43 AC 134 ms
89,308 KB
testcase_44 AC 139 ms
89,320 KB
testcase_45 AC 336 ms
117,864 KB
testcase_46 AC 172 ms
93,156 KB
testcase_47 AC 268 ms
110,568 KB
testcase_48 AC 120 ms
84,540 KB
testcase_49 AC 120 ms
84,536 KB
testcase_50 AC 120 ms
84,536 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