結果

問題 No.2024 Xer
ユーザー ikomaikoma
提出日時 2022-07-29 23:39:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 824 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 149,164 KB
最終ジャッジ日時 2023-09-26 23:31:35
合計ジャッジ時間 26,310 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
72,260 KB
testcase_01 AC 105 ms
72,016 KB
testcase_02 AC 108 ms
72,268 KB
testcase_03 AC 108 ms
72,212 KB
testcase_04 AC 108 ms
71,892 KB
testcase_05 AC 107 ms
72,384 KB
testcase_06 AC 107 ms
72,240 KB
testcase_07 AC 1,365 ms
144,192 KB
testcase_08 AC 276 ms
148,424 KB
testcase_09 AC 1,406 ms
119,536 KB
testcase_10 AC 287 ms
149,020 KB
testcase_11 AC 469 ms
100,048 KB
testcase_12 AC 769 ms
111,388 KB
testcase_13 AC 865 ms
116,692 KB
testcase_14 AC 1,378 ms
149,072 KB
testcase_15 AC 599 ms
106,236 KB
testcase_16 AC 940 ms
120,712 KB
testcase_17 AC 548 ms
92,656 KB
testcase_18 AC 537 ms
103,088 KB
testcase_19 AC 1,337 ms
149,164 KB
testcase_20 AC 800 ms
96,524 KB
testcase_21 AC 1,377 ms
120,200 KB
testcase_22 AC 1,375 ms
120,084 KB
testcase_23 AC 1,384 ms
119,664 KB
testcase_24 AC 1,382 ms
119,904 KB
testcase_25 WA -
testcase_26 AC 140 ms
78,412 KB
testcase_27 AC 135 ms
78,932 KB
testcase_28 AC 122 ms
77,328 KB
testcase_29 AC 133 ms
79,048 KB
testcase_30 AC 138 ms
79,060 KB
testcase_31 AC 142 ms
78,484 KB
testcase_32 AC 146 ms
78,668 KB
testcase_33 AC 136 ms
79,320 KB
testcase_34 AC 124 ms
76,944 KB
testcase_35 AC 110 ms
72,116 KB
testcase_36 AC 137 ms
79,124 KB
testcase_37 AC 140 ms
78,220 KB
testcase_38 WA -
testcase_39 AC 114 ms
76,560 KB
testcase_40 AC 126 ms
77,044 KB
testcase_41 AC 135 ms
79,008 KB
testcase_42 AC 139 ms
79,024 KB
testcase_43 AC 133 ms
79,252 KB
testcase_44 AC 137 ms
78,172 KB
testcase_45 AC 1,080 ms
105,840 KB
testcase_46 AC 299 ms
86,384 KB
testcase_47 AC 820 ms
98,012 KB
testcase_48 AC 107 ms
72,256 KB
testcase_49 AC 107 ms
72,224 KB
testcase_50 AC 107 ms
72,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,X=map(int,input().split())
A=list(map(int,input().split()))

from functools import cmp_to_key
def cmp(a,b):
    return -1 if min(a,a^X)<min(b,b^X) else 1

As = sorted(A, key=cmp_to_key(cmp))
ng=0
for i in range(1,N):
    if As[i-1]^X >= As[i]:
        ng=1
print("Yes" if ng==0 and len(set(A))==N else "No")
0