結果
| 問題 | No.1082 XORのXOR |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-03 21:40:10 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 15 ms / 2,000 ms |
| + 270µs | |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 17 ms |
| コンパイル使用メモリ | 29,568 KB |
| 実行使用メモリ | 19,840 KB |
| 最終ジャッジ日時 | 2026-09-19 09:14:14 |
| 合計ジャッジ時間 | 2,451 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 19 SEP 2026 09:14:11 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.006
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(a (make-array n :element-type 'integer))
(res 0))
(dotimes (i n) (setf (aref a i) (read)))
(loop for i below (1- n) do
(loop for j from (1+ i) below n do
(setf res (max res (logxor (aref a i) (aref a j))))))
(format t "~d~%" res)))
(main)
Common Lisp