結果

問題 No.1432 Not Xor
ユーザー linuxmetellinuxmetel
提出日時 2021-03-19 21:47:07
言語 Common Lisp
(sbcl 2.3.8)
結果
RE  
実行時間 -
コード長 85 bytes
コンパイル時間 876 ms
コンパイル使用メモリ 36,124 KB
実行使用メモリ 36,244 KB
最終ジャッジ日時 2024-04-29 16:28:46
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 29 APR 2024 04:28:43 PM):

; file: /home/judge/data/code/Main.lisp
; in: FORMAT "~a~%"
;     (FORMAT "~a~%" (NXOR (READ) (READ)))
; 
; caught WARNING:
;   Literal string as destination in FORMAT:
;     (FORMAT "~a~%" (NXOR (READ) (READ)))
; 
; caught WARNING:
;   Literal string as destination in FORMAT:
;     (FORMAT "~a~%" (NXOR (READ) (READ)))
; 
; note: deleting unreachable code
; 
; caught WARNING:
;   Derived type of (COMMON-LISP-USER::NXOR (READ) (READ)) is
;     (VALUES INTEGER &OPTIONAL),
;   conflicting with its asserted type
;     (OR STRING FUNCTION).
;   See also:
;     The SBCL Manual, Node "Handling of Types"
; 
; compilation unit finished
;   caught 3 WARNING conditions
;   printed 1 note


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

ソースコード

diff #

(defun nxor (x y) (+ (logior x y) (logand x y)))
(format "~a~%" (nxor (read) (read)))
0