結果
問題 |
No.2024 Xer
|
ユーザー |
👑 ![]() |
提出日時 | 2022-07-29 23:37:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 340 ms / 2,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 112,896 KB |
最終ジャッジ日時 | 2024-07-19 17:12:31 |
合計ジャッジ時間 | 7,761 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 47 |
ソースコード
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")