結果

問題 No.1432 Not Xor
コンテスト
ユーザー linuxmetel
提出日時 2021-03-19 21:47:07
言語 Common Lisp
(sbcl 2.6.7)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
RE  
実行時間 -
コード長 85 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 947 ms
コンパイル使用メモリ 36,848 KB
実行使用メモリ 33,772 KB
最終ジャッジ日時 2026-09-26 01:41:55
合計ジャッジ時間 2,218 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 26 SEP 2026 01:41:52 AM):

; 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.023

ソースコード

diff #
raw source code

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