結果

問題 No.56 消費税
ユーザー まんしmaNNshi
提出日時 2025-03-20 16:44:37
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 28,804 KB
実行使用メモリ 27,676 KB
最終ジャッジ日時 2025-03-20 16:44:39
合計ジャッジ時間 1,489 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 20 MAR 2025 04:44:37 PM):

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

ソースコード

diff #

(defvar D)
(defvar P)
(defvar temp)
(setq temp (read-line))
(setq temp (read-from-string (concatenate 'string "(" temp ")" )))
(setq D (nth 0 temp))
(setq P (nth 1 temp))
;(print D)
;(print P)
(format 't "~d~%" (floor (+ (* D 100) (* D P)) 100))
0