結果

問題 No.2024 Xer
ユーザー 👑 KazunKazun
提出日時 2022-07-29 23:37:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 363 ms / 2,000 ms
コード長 329 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 110,672 KB
最終ジャッジ日時 2023-09-26 23:27:44
合計ジャッジ時間 10,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
70,796 KB
testcase_01 AC 78 ms
71,232 KB
testcase_02 AC 77 ms
71,212 KB
testcase_03 AC 83 ms
71,252 KB
testcase_04 AC 79 ms
70,968 KB
testcase_05 AC 79 ms
70,796 KB
testcase_06 AC 77 ms
71,220 KB
testcase_07 AC 357 ms
105,816 KB
testcase_08 AC 152 ms
109,136 KB
testcase_09 AC 353 ms
110,296 KB
testcase_10 AC 151 ms
108,940 KB
testcase_11 AC 167 ms
90,176 KB
testcase_12 AC 214 ms
96,960 KB
testcase_13 AC 234 ms
98,680 KB
testcase_14 AC 350 ms
110,064 KB
testcase_15 AC 196 ms
93,252 KB
testcase_16 AC 246 ms
97,900 KB
testcase_17 AC 185 ms
92,456 KB
testcase_18 AC 184 ms
92,504 KB
testcase_19 AC 350 ms
110,120 KB
testcase_20 AC 225 ms
96,572 KB
testcase_21 AC 363 ms
110,592 KB
testcase_22 AC 361 ms
110,672 KB
testcase_23 AC 356 ms
109,892 KB
testcase_24 AC 355 ms
109,956 KB
testcase_25 AC 76 ms
71,272 KB
testcase_26 AC 84 ms
76,000 KB
testcase_27 AC 84 ms
76,316 KB
testcase_28 AC 77 ms
70,912 KB
testcase_29 AC 85 ms
75,848 KB
testcase_30 AC 87 ms
76,024 KB
testcase_31 AC 85 ms
75,944 KB
testcase_32 AC 90 ms
76,284 KB
testcase_33 AC 85 ms
75,844 KB
testcase_34 AC 81 ms
70,940 KB
testcase_35 AC 79 ms
71,196 KB
testcase_36 AC 86 ms
75,848 KB
testcase_37 AC 86 ms
75,892 KB
testcase_38 AC 87 ms
75,852 KB
testcase_39 AC 79 ms
71,228 KB
testcase_40 AC 79 ms
71,232 KB
testcase_41 AC 86 ms
75,932 KB
testcase_42 AC 84 ms
76,312 KB
testcase_43 AC 85 ms
76,372 KB
testcase_44 AC 87 ms
75,912 KB
testcase_45 AC 137 ms
99,728 KB
testcase_46 AC 93 ms
80,928 KB
testcase_47 AC 122 ms
98,872 KB
testcase_48 AC 76 ms
70,944 KB
testcase_49 AC 76 ms
71,268 KB
testcase_50 AC 78 ms
71,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import *

def solve():
    N,X=map(int,input().split())
    A=list(map(int,input().split()))
    B=[a^X for a in A]

    I=sorted(range(N),key=lambda i:A[i]+B[i])
    for k in range(N-1):
        if A[I[k]]>=B[I[k+1]] or B[I[k]]>=A[I[k+1]]:
            return False
    return True

print("Yes" if solve() else "No")

0