結果
| 問題 |
No.2024 Xer
|
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2024-12-19 09:26:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 624 ms / 2,000 ms |
| コード長 | 276 bytes |
| コンパイル時間 | 677 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 110,772 KB |
| 最終ジャッジ日時 | 2024-12-19 09:26:30 |
| 合計ジャッジ時間 | 13,006 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 47 |
ソースコード
n, x = map(int, input().split())
a = list(map(int, input().split()))
b = [(min(a[i], a[i] ^ x), i) for i in range(n)]
b.sort()
a = [a[i[1]] for i in b]
ok = True
for i in range(1, n):
ok &= a[i - 1] < (a[i] ^ x)
ok &= (a[i - 1] ^ x) < a[i]
print("Yes" if ok else "No")
遭難者