結果
| 問題 |
No.2024 Xer
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-29 20:36:18 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 554 bytes |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 40,272 KB |
| 最終ジャッジ日時 | 2024-09-29 20:36:39 |
| 合計ジャッジ時間 | 18,370 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 2 |
| other | AC * 23 RE * 24 |
ソースコード
(use scheme.sort)
(define yuki2024
(let* ((n (read))
(x (read))
(an (make-vector n))
(k<? (lambda (px py) (< (+ px (logxor px x)) (+ py (logxor py x))))))
(dotimes (i n) (vector-set! an i (read)))
(vector-sort! k<? an)
(let loop ((i 0))
(if (= i (- n 1))
(display "Yes\n"))
(cond
((>= (vector-ref an i) (logxor (vector-ref an (+ i 1)) x)) (display "No\n"))
((<= (vector-ref an (+ i 1)) (logxor (vector-ref an i) x)) (display "No\n"))
(else (loop (+ i 1)))))))