結果

問題 No.1432 Not Xor
ユーザー linuxmetel
提出日時 2021-03-19 21:47:07
言語 Common Lisp
(sbcl 2.5.0)
結果
RE  
実行時間 -
コード長 85 bytes
コンパイル時間 1,179 ms
コンパイル使用メモリ 31,828 KB
実行使用メモリ 36,120 KB
最終ジャッジ日時 2024-11-18 21:46:09
合計ジャッジ時間 740 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 18 NOV 2024 09:46:07 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.082

ソースコード

diff #

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