結果
| 問題 | No.2024 Xer |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-12-19 09:26:15 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 395 ms / 2,000 ms |
| + 235µs | |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 64,576 KB |
| 実行使用メモリ | 89,984 KB |
| 最終ジャッジ日時 | 2026-10-17 14:12:16 |
| 合計ジャッジ時間 | 10,434 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
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")