結果
問題 |
No.2323 Nafmo、A+Bをする
|
ユーザー |
![]() |
提出日時 | 2023-05-28 14:16:27 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 1,640 ms |
コンパイル使用メモリ | 25,856 KB |
実行使用メモリ | 21,760 KB |
最終ジャッジ日時 | 2024-12-27 00:18:10 |
合計ジャッジ時間 | 2,574 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 12 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 27 DEC 2024 12:18:07 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.021
ソースコード
(defun bitto10 (bit) (cond ((equal bit '0) 0) ((equal bit '1) 1) (t (+ (mod bit 10) (* 2 (bitto10 (/ (- bit (mod bit 10)) 10))))))) (defun solve (a b) (bitto10 (logxor a b))) (princ (solve (read) (read)))