結果

問題 No.32 貯金箱の憂鬱
ユーザー まんしmaNNshi
提出日時 2025-03-20 17:08:29
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 534 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 34,472 KB
実行使用メモリ 25,640 KB
最終ジャッジ日時 2025-03-20 17:08:31
合計ジャッジ時間 1,413 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 20 MAR 2025 05:08:29 PM):

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

ソースコード

diff #

(defvar L)
(defvar M)
(defvar N)
(setq L (parse-integer (read-line)))
(setq M (parse-integer (read-line)))
(setq N (parse-integer (read-line)))

(defvar Y)
(setq Y (+ (* L 100) (* M 25) N ))
;(format 't "<~d>~%" Y)

(defvar SUM)
(setq SUM 0)


;(setq SUM (+ SUM (floor Y 1000)))
(setq Y (mod Y 1000))
;(format 't "<~d ~d>~%" SUM Y )

(setq SUM (+ SUM (floor Y 100)))
(setq Y (mod Y 100))
;(format 't "<~d ~d>~%" SUM Y )

(setq SUM (+ SUM (floor Y 25)))
(setq Y (mod Y 25))
;(format 't "<~d ~d>~%" SUM Y )

(format 't "~d~%" (+ SUM Y))
0