結果
| 問題 | No.1082 XORのXOR |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-03 21:40:10 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 36,920 KB |
| 実行使用メモリ | 22,784 KB |
| 最終ジャッジ日時 | 2026-05-06 02:16:31 |
| 合計ジャッジ時間 | 3,066 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 MAY 2026 02:16:23 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.021
ソースコード
(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