結果

問題 No.1511 A ? B Problem
ユーザー motoshiramotoshira
提出日時 2021-05-21 22:11:26
言語 Common Lisp
(sbcl 2.3.8)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 1,703 ms
コンパイル使用メモリ 26,496 KB
実行使用メモリ 22,016 KB
最終ジャッジ日時 2024-04-18 15:40:18
合計ジャッジ時間 765 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
21,888 KB
testcase_01 AC 9 ms
21,888 KB
testcase_02 AC 8 ms
21,888 KB
testcase_03 AC 9 ms
21,888 KB
testcase_04 AC 9 ms
21,888 KB
testcase_05 AC 9 ms
21,888 KB
testcase_06 AC 9 ms
22,016 KB
testcase_07 AC 9 ms
21,888 KB
testcase_08 AC 9 ms
22,016 KB
testcase_09 AC 7 ms
21,888 KB
testcase_10 AC 7 ms
21,888 KB
testcase_11 AC 7 ms
21,888 KB
testcase_12 AC 8 ms
21,888 KB
testcase_13 AC 9 ms
21,888 KB
testcase_14 AC 8 ms
21,888 KB
testcase_15 AC 8 ms
21,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 18 APR 2024 03:40:15 PM):

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

ソースコード

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