結果

問題 No.1511 A ? B Problem
ユーザー motoshiramotoshira
提出日時 2021-05-21 22:11:26
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 34,768 KB
実行使用メモリ 30,012 KB
最終ジャッジ日時 2024-10-10 08:54:29
合計ジャッジ時間 1,181 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 10 OCT 2024 08:54:27 AM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.004

ソースコード

diff #

(declaim (inline println))
(defun println (obj &optional (stream *standard-output*))
  (let ((*read-default-float-format* 'double-float))
    (prog1 obj
      (princ obj stream)
      (terpri stream))))

(defun main ()
  (let ((a (read))
        (b (read)))
    (println (- (logior a b)
                (logand a b)))))

#-swank (main)
0